Hi Marco,
Thanks for contacting Syncfusion Support.
We have analyzed your query and achieved your requirement by using “displayTextRendering” event.
|
[JS]
$("#food-chart").ejChart(
{
displayTextRendering:"onDataLabelRendering",
});
function onDataLabelRendering(sender){
if(sender.data.seriesIndex == 1){
var yValue = 0;
for(var i=0;i<sender.model.series.length;i++){
yValue += sender.model.series[i].points[sender.data.pointIndex].y;
}
sender.data.text = yValue.toString();
}
}
|
In the above code , we are triggering the displayTextRendering event. In the event, we have displayed the total value of series through data label text on second series.
And we have modified the sample link from the below
Pleased find the output of the sample below
Please let us know if you have any concern.
Regards,
Saravana Kumar K.