Closed Truman55 closed 7 years ago
according to highcharts setCategories Demo, you can find out use chart.xAxis[0].setCategories();
to update categories.
so in the component, you can do that:
lineCharts.getChart().xAxis[0].setCategories(['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D']);
I alos update the demo. you can check it out.
Thanks for your reply. I also was able to make it using delegateMethod.
chartName.delegateMethod('update', ({ xAxis: { categories: [] } }));
But maybe your method is more correct
anyway, it works
How I can use native Highchart method for xAxis - setCategories? I've tried using delegateMethod, but it is not work. Thanks.