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

Donut chart legend angular not showing

1 Answer 82 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Baba
Top achievements
Rank 1
Baba asked on 20 Dec 2016, 01:55 PM

Hello,

I have a problem with kendo donut chart legend displaying. In this example http://demos.telerik.com/kendo-ui/donut-charts/angular there is specified "<div kendo-chartk-legend="{ position: 'bottom' }..." but the legend does not appear. 

Please help.

Thanks!

1 Answer, 1 is accepted

Sort by
0
Patrick | Technical Support Engineer, Senior
Telerik team
answered on 21 Dec 2016, 10:30 PM
Hi Baba,

The reason the Chart's legend does not appear in this demo is because of the data used and the property series.visibleInLegendField.  The series.visibleInLegendField reads a field in the JSON and will display if it is set to true.  In this case, the "visibleInLegend" is being used, and all are set to false.

I hope this clears things!

Regards,
Patrick
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Charts
Asked by
Baba
Top achievements
Rank 1
Answers by
Patrick | Technical Support Engineer, Senior
Telerik team
Share this question
or