Highcharts scatter chart with a name per point

Viewed 18712

I'm trying to tweak a Highcharts scatter plot with this date series

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

so that i can put a name on each point, I want to show the name in the tooltip. The API doc says an object of named values can be defined like this

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

but it seems the x and y values are not picked up. See my jsfiddle example.

6 Answers

You could also show names in the legend section. Updated the selected answer above here

series: [{
        name: 'Point 1',
        data: [[3, 3]]
    }, {
        name: 'Point 2',
        data: [[4, 8]]
    }, {
        name: 'Point 3',
        data: [[9, 15]]
    }]
Related