Change HighCharts axis title

前端 未结 5 1242
花落未央
花落未央 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-04 00:18

    I couldn't get either of the above to work, perhaps things have changed since last year... I ended up using:

    chart.yAxis[0].update({
                    title:{
                        text: "new title"
                    }
                });
    

    and it worked nicely...

提交回复
热议问题