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

Change cursor on series hover

2 Answers 953 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Prashant
Top achievements
Rank 1
Prashant asked on 14 Apr 2014, 08:33 PM
Hi,

We want to implement drill down functionality on series item (bar) click. For that we want to change mouse cursor to pointer on chart series item hover. When
mouse moves out of series, cursor should be set to default.

How can I achieve this?


Thanks,
Prashant Gham



2 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 15 Apr 2014, 12:50 PM
Hi Prashant,

This scenario is not supported by Kendo UI Chart, however we will consider this idea for future releases. Meanwhile as a possible workaround I can suggest attaching a handler to the seriesHover event and change the mouse cursor using the following code snippet:
$("#chart").kendoChart({
  //...
  seriesHover: function(){
     $("#chart").css("cursor", "pointer");
  }
});
, however there is no an event which fires when the mouse cursor moves out the series and the cursor cannot be set back to default. 

Regards,
Iliana Nikolova
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Adrien
Top achievements
Rank 1
answered on 20 Mar 2015, 11:49 AM
Hi,

This CSS snippet does the job:
path[data-model-id]{
    cursor: pointer;
}
path[fill-opacity='0']{
    cursor: default;
}

Adrien
Joel
Top achievements
Rank 1
commented on 08 Feb 2024, 04:08 PM

This does not work, when adding this class to Vue Component's style section
Neli
Telerik team
commented on 12 Feb 2024, 09:18 AM

Hi Joel, 

Are you using the Kendo UI for jQuery in a Vue app or you are using the Kendo Vue components?

For questions related to the Kendo UI for Vue you can search or post the issues in the dedicated forum:

- https://www.telerik.com/kendo-vue-ui

Regards,

Neli

 

Tags
Charts
Asked by
Prashant
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Adrien
Top achievements
Rank 1
Share this question
or