This question is locked. New answers and comments are not allowed.
Hello!
I'm facing with a problem right now.
I tried to add the legend for the pie and the donut, but unfortunately it doesn't work.
My first try was to add legend inside of chart like example below:
$chart = new \Kendo\Dataviz\UI\Chart('chart'); $chart->dataSource($dataSource) ->autoBind(TRUE) ->tooltip($tooltip) ->addSeriesItem($seriesPieDonut) ->legend(array('visible' => true)) ->seriesDefaults($seriesDefaults);Also my second try was to add the legend into series like example below:
$seriesPieDonut = new \Kendo\Dataviz\UI\ChartSeriesItem(); $seriesPieDonut->field('datapoint')->visibleInLegend('visible');
Unfortunately the result is the same.
Maybe you guys have a solution for thins situation. I will greatly appreciate!
Thank you!
Yours,
Alexandru-Paul Ioneasa