Change HighCharts axis title

前端 未结 5 1362
花落未央
花落未央 2021-02-03 23:44

Is it possible to change the axis title of a HighCharts chart programatically?

I\'m trying to do something like this:

charts.series[0].yAxis.title.text =         


        
5条回答
  •  自闭症患者
    2021-02-04 00:34

    The above answer has still one problem. Images created from the plot using the export module will show the original title, not the changed one. Add the following line to fix:

    chart.options.yAxis[0].title.text = 'new title';
    

提交回复
热议问题