Change HighCharts axis title

前端 未结 5 1244
花落未央
花落未央 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:24

    Yes you can do this by using the following:

    chart.yAxis[0].axisTitle.attr({
            text: 'new title'
        });
    
    

提交回复
热议问题