if you have a look at this fiddle: https://jsfiddle.net/dizzy0ny/3ukcexvh/207/
You will see that my data consists of arrays with 8 elements. these correspond to: date, open, high, low, close, volume, change, and change_percent
I would like to be able to add the last two elements (change and change_percent) of the array as metadata to a series point so that i may reference it later to build a tool tip that includes them. some what like this (note the last two rows):
Code: Select all
orig_fmt = '<span style="color:blue">●</span><b>'+point.series.name+'</b><br/> O: ' +Highcharts.numberFormat(point.open,2)+'<br/> H: ' +Highcharts.numberFormat(point.high,2)+'<br/> L: ' +Highcharts.numberFormat(point.low,2)+'<br/> C: ' +Highcharts.numberFormat(point.close,2)+'<br/>' +Highcharts.numberFormat(point.chg,2)+'<br/>' //Change from previous close +Highcharts.numberFormat(point.chg_pct,2)+'<br/>';//Percent change from previous close
Any suggestions on how to this?