简体   繁体   English

Google Chart工具提示选项

[英]Google Chart Tooltip Options

I have created a Google Line Chart and I am trying to change my tooltip options. 我已经创建了Google折线图,并且尝试更改工具提示选项。 The tooltip will display strings such as "Apr 1991 : \\n 295,3131". 工具提示将显示诸如“ 1991年4月:\\ n 295,3131”之类的字符串。 I know you can use the textstyle property and set the text to bold. 我知道您可以使用textstyle属性并将文本设置为粗体。 However, is there a way you can apply it to just a portion of the string. 但是,有一种方法可以将其仅应用于字符串的一部分。 For instance, is there some way I can my my tooltip appear like this? 例如,是否可以通过某种方式使我的工具提示看起来像这样?

Apr 1991 1991年4月

295, 3131 295、3131

Just wondering if I am able to set bold to true on just a portion of the string. 只是想知道我是否能够仅在字符串的一部分上将粗体设置为true。 Any help would be greatly appreciated. 任何帮助将不胜感激。

You can enable HTML in your tooltips, which will allow you to bold whatever you like. 您可以在工具提示中启用HTML,这将使您可以粗体显示任何所需的内容。 See the documentation on using HTML tooltips . 请参阅有关使用HTML工具提示文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM