jQuery UI Widgets Forums Chart Change cursor on Mouse over chart

This topic contains 5 replies, has 3 voices, and was last updated by  Hristo 8 years, 3 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • Change cursor on Mouse over chart #81926

    milesd
    Participant

    Hello,

    I have an onclick event that triggers a window when the the column on a chart is clicked. I would like the mouse cursor to change to style ‘pointer’ with the mouseover event.

    I know how to bind to the events but I cant seem to get the cursor to change. I’m using the css properties of the chart but nothing.

    $(‘#jqxChart’).css(‘cursor’, ‘pointer’);

    Can you guide me as to how to accomplish this.

    Change cursor on Mouse over chart #81983

    Hristo
    Participant

    Hello milesd,

    We do not have such property.
    Would like present to you one our demo like a workaround:
    http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxchart/javascript_chart_crosshairs.htm?arctic

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    Change cursor on Mouse over chart #85127

    csoga
    Participant

    Hi Histro,

    The ability to change the cursor to “pointer” on mouserover used to work. I had the it working in release 3.7. I just upgraded to release 4.2 and it doesn’t work anymore. See the event handling code I have for both versions below. What broke?

    My release 3.7 Event Handler (works):

    function eventHandler()
    {
    var groups = $(‘#chart’).jqxChart(‘seriesGroups’);
    if (groups.length > 0)
    {
    for (var i=0; i<groups.length; i++)
    {
    groups[i].mouseover = function(e)
    {
    var obj=document.getElementById(‘chart’);
    obj.style.cursor=”pointer”;
    };

    groups[i].mouseout = function(e)
    {
    var obj=document.getElementById(‘chart’);
    obj.style.cursor=”default”;
    };

    }
    }
    }

    My release 4.2 Event Handler (does not work):

    function eventHandler(event)
    {
    if (event.type == ‘mouseover’)
    {
    var obj=document.getElementById(‘chart’);
    obj.style.cursor=”pointer”;
    }

    if (event.type == ‘mouseout’)
    {
    var obj=document.getElementById(‘chart’);
    obj.style.cursor=”default”;
    }
    }

    Change cursor on Mouse over chart #85149

    Hristo
    Participant

    Hello csoga,

    In base we set cursor to “default”.
    The case that you change the cursor in old version is not a feature that we support.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    Change cursor on Mouse over chart #85161

    csoga
    Participant

    You can’t break the API from version to version. Not cool..

    I need a work-around.

    Thanks.

    Change cursor on Mouse over chart #85205

    Hristo
    Participant

    Hello csoga,

    Thanks for the interest to our widget.
    We are not break the API that officially support in different versions.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.