If I have a column chart with the following datapoints, I wanted to know what the best way to group data would be. My requirements are that each column should be able to be grouped like in the linked photo, even if the number of datapoints in each group is different.
This is my example dataset:
var chart = new CanvasJS.Chart("chartContainer", {
title:{
text: "Column Chart"
},
data: [{
type: 'column',
dataPoints: [
{ label: 'Chrome', y: 1 },
{ label: 'Safari', y: 2 },
{ label: 'Chrome', y: 3 },
{ label: 'Safari', y: 4},
{ label: 'Chrome', y: 5 },
]
}, ]
});
chart.render();
-
This topic was modified 4 years, 2 months ago by ksubendran.