Programmatically change a chart title in highcharts

后端 未结 1 469
生来不讨喜
生来不讨喜 2020-12-05 22:21

I have a simple column chart that I update via AJAX, and all is working fine except I cannot change the actual title of the chart when I\'m updating the data.

I\'ve

相关标签:
1条回答
  • 2020-12-05 23:18

    You can use setTitle(titleObj, subTitleObj) for that.

    chart.setTitle({text: "New Title"});
    

    See an example: jsfiddle

    See the API Ref.

    0 讨论(0)
提交回复
热议问题