如何使 HTML 在 HighChart 标题中工作?

AGa*_*yer 2 highcharts

我想在高图表标题中使用 HTML。就像是:

{
   "title": "An <b>Important</b> Chart"
}
Run Code Online (Sandbox Code Playgroud)

有什么简单的方法可以做到这一点吗?

Cor*_*972 5

你需要useHtml: true这样使用:

...
title: {
    text: 'An <b>Important</b> Chart',
    useHtml: true
},
...
Run Code Online (Sandbox Code Playgroud)

文档-小提琴