In the original Chart.js the Dataset Structure has a property called stack which can be used to stack group of data sets separately.
"stack: String The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack)"
I tried doing this in ng2-charts like so:
public barChartData: any[] =[
{
data: [],
label: 'Label',
type: 'bar',
stack: '1'
}
]
But didn't do anything.
Here is the dataset property from the ng2-charts: datasets (Array<{data: Array | number[], label: string}>) - data see about, the label for the dataset which appears in the legend and tooltips
Is there a work around for stacking groups separately?
Thank you!