Google 图表:ColumnChart 中的换行标题

MDT*_*MDT 5 google-visualization

我想将 ColumnChart 中的标题分成 2 行(或更多行)。

(请参阅https://developers.google.com/chart/interactive/docs/gallery/columnchart

我尝试使用管道(“|”)符号,如下所示,但它不起作用,“\n”也不起作用。

var options = {"title":"My first line | \n this should be the second line!"};
Run Code Online (Sandbox Code Playgroud)

感谢您的关注!

asg*_*ant 1

Google Visualization API 图表不支持标题中的换行符。据我所知,对使用 HTML 的支持正在酝酿之中(这将允许您使用<br />标签进行换行),因此请密切关注可视化 API 组中有关此效果的公告。