Chr*_*ore 7 google-visualization
可能重复:
如何更改Google图表API的工具提示文字?
我使用Google Charts创建折线图:http: //code.google.com/apis/chart/interactive/docs/gallery/linechart.html
我想控制用户点击或悬停在数据点上时显示的文本.目前,悬停仅显示数据集名称和值(相同的Y轴).我想显示其他元数据.这可能吗?有人有例子吗?
小智 2
是的,您可以使用以下代码来完成此操作 -
<code>
data.setFormattedValue(<your custom hover lable>);
</code>
Run Code Online (Sandbox Code Playgroud)
参考这里:
http://code.google.com/apis/chart/interactive/docs/reference.html#DataTable_setFormattedValue
| 归档时间: |
|
| 查看次数: |
11242 次 |
| 最近记录: |