Hi Alicia,
Thanks for contacting Syncfusion Support.
We have analyzed your query and created sample based on your requirement .This can be achieved by using “DisplayTextRendering” event.
Please follow the code example below
[CSHTML] @(Html.EJ().Chart("container") .DisplayTextRendering("sumofLabels") ) [JS] function sumofLabels(sender) //Display text rendering event triggered { var value=0; for (var i = 0; i < sender.model.series.length; i++) { value += sender.model.series[i].points[sender.data.pointIndex].y; } sender.data.text = "Sum:"+ value; } |
In the above code, we are triggering “DisplayTextRendering” event. In the event, we have added the point of Y-values for each column series and that sum of value is assigned to the data label text.
We have also made a sample for your reference and attached in the below location.
Please find the output of the sample below
Please let us know if you have any concern.
Regards,
Saravana Kumar K