jQuery UI Widgets › Forums › Chart › Change cursor on Mouse over chart
Tagged: Angular chart, bootstrap chart, cursor, javascript chart, jquery chart, jqwidgets chart, jqxChart
This topic contains 5 replies, has 3 voices, and was last updated by Hristo 8 years, 3 months ago.
-
Author
-
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.
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?arcticBest Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comHi 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”;
}
}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 HristovjQWidgets team
http://www.jqwidgets.comYou can’t break the API from version to version. Not cool..
I need a work-around.
Thanks.
Hello csoga,
Thanks for the interest to our widget.
We are not break the API that officially support in different versions.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.