How do I disable the interactive pie chart legend in Kendo UI charts?

I have a KendoChart trick with a legend. For some reason, the legend is interactive by default, and by clicking on the map of the legend elements, you can / disable pieces of the pie.

I did not find a way to disable this behavior: http://docs.telerik.com/kendo-ui/api/dataviz/chart

enter image description here

Can it be disabled?

+7
telerik pie-chart legend kendo-ui kendo-chart
source share
2 answers

I needed to do the same, and after some research found in the Kendo UI documentation, the following solution: - bind the ItemClick and legendItemHover diagram events to the legend - in the e.preventDefault () handler call;

Here is the code I used (MVVM style):

In HTML:

data-bind="events: { legendItemClick: disableEvent, legendItemHover: disableEvent } " 

In ViewModel:

 disableEvent: function(e) { e.preventDefault(); } 

Here is the article - http://docs.telerik.com/kendo-ui/api/dataviz/chart

+9
source share

Use the code below

 legend: { position: "bottom", visible: false }, 
+7
source share

All Articles