This is a migrated thread and some comments may be shown as answers.

axisLabelClick - Change Cursor

2 Answers 80 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 09 Sep 2013, 03:03 PM
I apologize if this is listed somewhere but I cannot find it. Is there a way to have the cursor change to a pointer on the Axis Label? Specifically if the axisLabelClick is enabled then it would be nice if the cursor changes.

2 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 10 Sep 2013, 11:06 AM
Hello Richard,

In order to achieve this you could use jQuery css() method. For example: 

$("#chart").kendoChart({
    //...
    axisLabelClick: onSeriesHover,
   plotAreaClick: onPlotAreaClick
  });
 
function onSeriesHover() {
    $("#chart").css("cursor", "pointer");
}
         
function onPlotAreaClick(){
    $("#chart").css("cursor", "auto");
}
Regards,
Iliana Nikolova
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Richard
Top achievements
Rank 1
answered on 10 Sep 2013, 12:44 PM
That is brilliant... very simple and clean and it kind of annoys me I didn't think of that. :)

Thanks.
Tags
Charts
Asked by
Richard
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Richard
Top achievements
Rank 1
Share this question
or