Home forums Using CanvasJS Data Point Mouseover – not very accurate

This topic contains 2 replies, has 2 voices, and was last updated by  s_t_harvey 4 days, 19 hours ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15552

    s_t_harvey
    Member

    I have set a function to be triggered on mouseover like this:

     data: [
                        {
                            type: "spline",   
    						mouseover: onMouseover,   
    						click: onMouseover,  
    						markerSize:2,      
    						markerColor:'red',
                            dataPoints: dataPoints
                        }
                        ]

    This does work but it doesn’t always happen.

    Is there a better way to achieve this?

    Ideally I would like an event to be triggered anytime that the cursor moves over the chart – as the dot & labels move from point to point (i.e. not just when the mouse is over the actual marker, but when it is within the range). Any advice would be appreciated.

    Thanks

    • This topic was modified 1 week, 5 days ago by  s_t_harvey.
    #15578

    Indranil Deo
    Member

    @s_t_harvey,

    This feature is not available out of the box as of now. However, you can take a look at this work-around.


    Indranil Deo
    Team CanvasJS

    #15593

    s_t_harvey
    Member

    Thanks very much, that’s great.

    Thanks for such a great script.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.