Currently, I am utilizing kendoUI in combination with angular to create a Kendo Donut chart. Below is the representation of my chart.
<div class="center-pad" kendo-chart k-theme="['material']" k-chart-area="{height: 325, width: 480}"
k-series="[{ type: 'donut',
field: 'percentage',
labels: {visible: true, template: '${value} ${category} ${dataItem.color}', position: 'outsideEnd', font: '15px Lato-Regular'},
categoryField: 'source',
explodeField: 'explode'}]"
k-series-click="actionChartClick" k-data-source="actionChartData">
My goal is to synchronize the series label color with the respective series color. Within the template, I can access the color using ${dataItem.color}
.
I attempted to achieve this by adjusting the settings as follows:
k-series="[{ ...
labels: {visible: true, template: '${value} ${category}', position: 'outsideEnd', font: '15px Lato-Regular', color: '${dataItem.color}'}"
However, this approach did not yield desired results. Would appreciate any guidance on the correct modification required for achieving this?