Highcharts scatter chart with a name per point -


i'm trying tweak highcharts scatter plot date series

series: [{     data: [[1,2],[2,5]] }] 

so can put name on each point, want show name in tooltip. api doc says object of named values can defined

series: [{     data: [{         name: 'point 1',         x: 1,         y: 2     }, {         name: 'point 2',         x: 2,         y: 5     }] }] 

but seems x , y values not picked up. see jsfiddle example.

as stated in documentation, name field name of point shown in legend, tooltip, datalabel, , on. updated fiddle include highcharts library, , seeing behaviour (i.e. if hover on point, label displayed).

if want x-axis labels set correctly, need ensure xaxis section of chart configuration not have categories key.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -