Google-悬停工具提示上的折线图未显示值
Google-Line-Chart on hover tool-tip not showing value
我在 typescript 版本的 Angular2 中使用了 Google Line Charts,当我绘制折线图时,图表看起来不错但是当我将鼠标悬停在折线图上以查看该点的确切值时,我可以在工具提示中看不到任何值,我不明白如果该值已绘制在图表中但未显示在工具中可能是什么问题-tip.I 已附上屏幕截图以供参考。转换成数据表的示例数据数组如下:
Gdata = [
["TimeStamp", "Temparature"], [Sat May 13 2017 10:45:00 GMT+0530 (India Standard Time), 23.81], [Sat May 13 2017 10:50:00 GMT+0530 (India Standard Time), 23.83], [Sat May 13 2017 10:55:00 GMT+0530 (India Standard Time), 23.90], [Sat May 13 2017 11:00:00 GMT+0530 (India Standard Time), 23.85], [Sat May 13 2017 11:05:00 GMT+0530 (India Standard Time), 23.82]
];
请帮忙。提前致谢。
在查看 google 图表提供的许多选项后,我找到了一个名为 tooltip: { isHtml: true }
的选项,它对我有用,现在工具提示仅显示在图表区域内。
我在 typescript 版本的 Angular2 中使用了 Google Line Charts,当我绘制折线图时,图表看起来不错但是当我将鼠标悬停在折线图上以查看该点的确切值时,我可以在工具提示中看不到任何值,我不明白如果该值已绘制在图表中但未显示在工具中可能是什么问题-tip.I 已附上屏幕截图以供参考。转换成数据表的示例数据数组如下:
Gdata = [
["TimeStamp", "Temparature"], [Sat May 13 2017 10:45:00 GMT+0530 (India Standard Time), 23.81], [Sat May 13 2017 10:50:00 GMT+0530 (India Standard Time), 23.83], [Sat May 13 2017 10:55:00 GMT+0530 (India Standard Time), 23.90], [Sat May 13 2017 11:00:00 GMT+0530 (India Standard Time), 23.85], [Sat May 13 2017 11:05:00 GMT+0530 (India Standard Time), 23.82]
];
请帮忙。提前致谢。
在查看 google 图表提供的许多选项后,我找到了一个名为 tooltip: { isHtml: true }
的选项,它对我有用,现在工具提示仅显示在图表区域内。