Home forums Using CanvasJS Cursor on data points

Tagged: 

This topic contains 6 replies, has 2 voices, and was last updated by  Sunil Urs 3 years, 5 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #4634

    samip1981
    Participant

    Sunil, this is a wonderful library. Thank you for all of your work on it!

    Is it possible to change the mouse cursor to the ‘pointer’ when on a data point to indicate that the point is clickable? Currently the cursor stays as the default.

    I tried the following code to handle the mouseover event, but the cursor only seems to be changed when the cursor leaves the data point, not when it is on it.

    mouseover: function(e){ document.body.style.cursor = ‘wait’; }

    Thanks for your help!

    #4637

    Sunil Urs
    Keymaster

    Samip,

    That makes sense. I’ve just implemented the feature. Here is an internal build – public release will take couple of days. Do try out and let me know.

    Basically you need to set “cursor” property of dataSeries / dataPoint.


    Sunil Urs

    #4638

    samip1981
    Participant

    Sunil,

    Yes, it works perfectly! Thank you for your quick response and thanks again for your wonderful work!

    Samip

    #4729

    Sunil Urs
    Keymaster

    Samip,

    Just wanted to inform you that this feature is now available in the main release – v1.2. Do update.


    Sunil

    #4730

    samip1981
    Participant

    Thanks, Sunil! I noticed that a couple days ago and updated. Works perfectly.

    #4746

    samip1981
    Participant

    Hi Sunil,

    Just wanted to show you where we are using CanvasJS: http://www.saadigitalarchive.org/firstdays

    Thanks again for such a wonderful library!

    All the best,
    Samip

    #4747

    Sunil Urs
    Keymaster

    Samip,

    Thats a really nice customization. And interesting stories too… Have been reading for the past one hour… 🙂

    Thanks for sharing.


    Sunil

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

You must be logged in to reply to this topic.