Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
Pointer on bar rollover
posted

I am using a bar chart. I would like the cursor to change to a pointer when rolling over a bar. How can I do this?

Ron 

  • 10880
    posted

    You are going to have to handle two client side events off the webchart and set the cursor style on the div that has the id of the chart control.  Here is the code I used:

    function UltraChart1_ClientOnMouseOver(this_ref, row, column, value, row_label, column_label, evt_type, layer_id){

    var chdiv=document.getElementById("UltraChart1");chdiv.style.cursor="hand";

     

    }

    function UltraChart1_ClientOnMouseOut(this_ref, row, column, value, row_label, column_label, evt_type, layer_id){

    var chdiv=document.getElementById("UltraChart1");

    chdiv.style.cursor="default";

    }