Hi Magnus,
Thanks for using Syncfusion products.
We have analyzed your query, your requirement can be achieved using display-text-rendering event. This event will be triggered for each data label and we can able to customize the data label text in this event. In order to achieve your requirement, we have cancelled the event when the data label value is 0(zero). You can change this with respect to your scenario. Kindly find the code snippet to achieve this scenario.
|
ASP.NET Core:
<ej-chart display-text-rendering="dataLabel">
</ej-chart>
function dataLabel(sender) {
if (sender.data.text === 0) sender.cancel = true;
}
|
Screenshot:
Sample for reference can be find from below link.
Kindly revert us, if you have any concerns.
Thanks,
Dharani.