gpt4 book ai didi

google-visualization - 谷歌图表 : line break title in ColumnChart

转载 作者:行者123 更新时间:2023-12-03 22:50:29 25 4
gpt4 key购买 nike

我想将 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!"};

感谢您的关注!

最佳答案

在 javascript 中,在您的图表选项变量中,只需在您想要休息的地方添加\n,例如:

vAxis: { title: "Line one of the title\nLine two of the title" }

关于google-visualization - 谷歌图表 : line break title in ColumnChart,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17785270/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com