2013-05-13 49 views
1

我想更改箱形图上的弹出文本。如何编辑高空作业箱图中的工具提示文本

api和那里链接的例子,我认为这将是一个格式化功能添加到该系列的情况。所以我去了demo并点击'在jsFiddle中编辑'。后来我改变:

tooltip: { 
    headerFormat: '<em>Experiment No {point.key}</em><br/>' 
} 

tooltip: { 
    headerFormat: '<em>Experiment No {point.key}</em><br/>', 
    formatter: function() { return 'some random string'; } 
} 

我预计提示更改为“一些随机字符串”(如从提示API参考链接演示发生),但它是不变的。任何提示?

回答

0

我们来看一看REFFERENCE。

series.tooltip
"A configuration object for the tooltip rendering of each single series. Properties are inherited from tooltip, but only the following properties can be defined on a series level."

Source

正如你所看到的,有没有formatter那里。

您正在寻找this one,它必须在主要工具提示对象中使用。