Hi Team,
I am referring this example to implement stacked column chart using a complex array object. It is rendering the chart, but it is not rendering the column with multi colors as shown in the example.
Excpected:
Actual:
Please refer the below the code snippet and the data which I am trying to bind and help me in correcting the code/data to render the expected chart output.
Code:
<kendo-chart>
<kendo-chart-series>
<kendo-chart-series-item type="column" [stack]="true" *ngFor="let item of items" [data]="item" field="bandValue" categoryField="category"> </kendo-chart-series-item>
</kendo-chart-series>
</kendo-chart>
Data:
items = [
[
{
category: 'TATA',
bandValue: 1,
},
{
category: 'TATA',
bandValue: 4,
},
{
category: 'TATA',
bandValue: 7,
},
],
[
{
category: 'FORD',
bandValue: 1,
},
{
category: 'FORD',
bandValue: 4,
},
{
category: 'FORD',
bandValue: 9,
},
],
[
{
category: 'GM',
bandValue: 1,
},
{
category: 'GM',
bandValue: 4,
},
{
category: 'GM',
bandValue: 3,
},
],
];
Thanks!