Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我遇到了在点出现的弹出窗口中包含文本的问题,这是示例的链接。我想在每个弹出点放置我自己的名为 myText 的数组中的文本。有什么建议么?
链接到jsFiddle
试试这个作为格式化函数:
tooltip: { formatter: function() { return '<b>'+ myText[this.point.x] +'</b>'; } }
jsFiddle在这里:http: //jsfiddle.net/tGguS/2/