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
Post a Comment