Enlarge different marker sizes when hovering a row using tall charts

I have a scatter chart in Highcharts that has the last point marker in each series larger than the previous ones:

series: [{
    name: 'A',
    color: "#b0b0b0",
    data: [[38,42],[39,39],[35,45],[35,54],{x:36,y:35,marker:{radius:8,symbol:'circle'}}
    ]
}, {
    name: 'B',
    color: "#b0b0b0",
    data: [[46,56],[47,67],[48,69],[50,55],{x:52,y:57,marker:{radius:8,symbol:'circle'}}
    ]
}]

Then I set the magnification to 2 pixel markers on hovering a row:

plotOptions: {
    scatter: {
        lineWidth:1,
        marker: {
            radius: 1,
            symbol:'circle',
            fillColor: '#800000',
            states: {
                hover: {
                    enabled: true,
                    radius:0,
                    radiusPlus:2,
                    lineColor: '#ff0000',
                    fillColor: '#ff0000'
                }
            }
        },
...
},

A working example is here . However, when I hang the series, the last point marker becomes smaller and not larger. How can i decide?

+4
source share
1 answer

One solution is to add a specific guidance radius to points with a specific radius.

For example, your code works for all points except:

{x:36,y:35,marker:{radius:8,symbol:'circle'}

You can add a hover radius to this ad like this:

{x:36,y:35, marker:{radius:8,symbol:'circle', states: { hover: { radius: 10 } }}}

JSFiddle, , .

+1

Source: https://habr.com/ru/post/1622595/


All Articles