Table
: Array(4) 0 : {MonthsName: 'April', AUTOLIV: 0, Continental: 0, Herman miller: 0, REL: 0, …} 1 : {MonthsName: 'July', AUTOLIV: 0, Continental: 4, Herman miller: 0, REL: 0, …} 2 : {MonthsName: 'June', AUTOLIV: 1, Continental: 0, Herman miller: 0, REL: 0, …} 3 : {MonthsName: 'May', AUTOLIV: 1, Continental: 0, Herman miller: 1, REL: 1, …} length : 4 [[Prototype]] : Array(0) [[Prototype]] : Object
This is my result getting from db after doing PIVOT function
Month Name should come as x-axis and Other column should come as stacked values with its count.
Thanks in Advance.
You need to map your data to the series structure required by Highcharts. You can do that for example in this way:
Live demo: https://jsfiddle.net/BlackLabel/esj6hun5/
API Reference: https://api.highcharts.com/highcharts/series.column.data