Screen charts, display marker at selected point only

I would like to display a spline plot without a marker on the line. Done. But now that a point is selected, the marker does not appear.

I found a bit of a hack to do what I want. In plotOptions, the radius is set to 0.1 to be hidden by the line width.

plotOptions: {
    series: {
        allowPointSelect: true,
            marker: {
                radius: 0.1, // hack to show selected point
                states: {
                    hover: {
                        radius: 5
                    },
                    select: {
                        radius: 5
                    }
                }
            }
        }
    }
}

      

The complete code is here: http://jsfiddle.net/ManUtopiK/7GXeT/

Is this a HighCharts bug, or have I made a mistake in the graph settings?

+3


source to share


1 answer


If you set the marker to be on: false, you still show the marker point if you hover over the point (when the tooltip pops up). See the updated script here :



plotOptions: {
    series: {
        allowPointSelect: true,
        marker: {
            enabled: false,
            //radius: 0.1, // hack to show selected point
            states: {
                hover: {
                    radius: 5
                },
                select: {
                    radius: 5
                }
            }
        }
    }
}

      

-2


source







All Articles