【问题标题】:Bubble chart with Highstock, how to create different tooltips?带有 Highstock 的气泡图,如何创建不同的工具提示?
【发布时间】:2014-05-27 11:52:41
【问题描述】:

我在process of creating a Bubble Chart with Highstock。我想知道是否可以将系列名称的数据更改为以下内容:

data: [{name:'any words 1',x:Date.UTC(1970,  9, 27), y:2.07, z:1},{name:'any words 
2',x:Date.UTC(1970,  9, 27), y:1.03, z:1}]}

我想用this.point.name 制作单独的工具提示以显示一些附加信息。

【问题讨论】:

  • 您是否尝试过自己的解决方案,您遇到了什么错误?

标签: javascript tooltip highstock series


【解决方案1】:

是的,您可以,那么您只需要通过 point.format 或 tooltip.formatter 在工具提示中提取此信息。

 tooltip:{
        pointFormat: '{series.name}: <b>{point.y}</b><br/> {point.name}'
 },

http://jsfiddle.net/b826C/45/

【讨论】:

    猜你喜欢
    • 2013-04-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-10-28
    相关资源
    最近更新 更多