"this.point.config" is not working anymore in highcharts tooltip -
i have same problem posted in post : highcharts pass multiple values tooltip
i want pass data tooltip this.point.config[2]
not working. found this example. it's not working there too
formatter: function() { return 'param1: '+this.point.config[2] + 'param2: '+this.point.config[3];
can please me
if want pass in values tool tip, data series needs list of objects rather list of values:
data: [ { x: 7, y: 10, config1: 'test', // our custom data config2: 'test2' // our custom data }, { x:10, y:20, config1: 'test3', // our custom data config2: 'test4' // our custom data } ]
so in highcharts formatter
function can reference custom parameters eg. config1
, config2
(you can use whatever name want really) :
tooltip: { formatter: function() { return 'param1: '+this.point.config1 + '<br/>param2: '+this.point.config2; } }
see fiddle: http://jsfiddle.net/fuytc/8/
Comments
Post a Comment