Bac*_*tnz 19 jquery highcharts
嗨,大家好我正在绘制图表,
Data.chart.series[0].remove();
Data.chart.xAxis[0].axisTitle.attr({ text: xAxisTitle});
//Data.chart.xAxis[0].categories = xAxisCategories;
Data.chart.addSeries({
name: yAxisTitle,
data: formattedData,
pointInterval: pointInterval
});
Data.chart.redraw();
Run Code Online (Sandbox Code Playgroud)
我根本无法在文档中看到有关更改xAxis类别的任何内容,这可能吗?我看不到任何改变标题的东西,但设法在网上获得一个片段,我真的需要避免破坏和重新创建图形.
eol*_*son 36
您可以使用setCategoriesAxis对象上的方法执行此操作.请参阅此处的轴参考文档:http://www.highcharts.com/ref/#axis-object