2013-07-22 20 views

回答

1

Google Visualization API圖表不支持標題中的換行符。我被告知,使用HTML的支持正在進行中(這將允許您使用<br />標籤換行),因此請留意Visualization API group中的相關通知。

+0

非常感謝您提供的有用信息! – MDT

0

您需要添加ASCII碼10

在Ruby中我使用了以下內容:

Label = first_line_string + 10.chr + second_line_string 
1

而在JavaScript中,在你的圖表選項變量,只需添加\ n,其中你想休息,如:

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