Hi Dana,
Thanks for using our products.
We have analyzed your query. Your requirement can be achieved by using textRender event. This event will be triggered for each data label and we can able to customize the data label text. Kindly find the code snippet below to achieve this requirement.
|
TS:
//Required module to be imported for text rendered event
import { ITextRenderEventArgs } from '@syncfusion/ej2-charts';
let chart: Chart = new Chart({
//...
textRender: function (args) {
if (args.text === '0') {
args.cancel = true;
}
}
});
chart.appendTo('#container');
|
In the above code , we have cancelled the rendering of data label value 0. So that, the data label with text zero will not be visible. You can also customize the text with respect to your requirement using this event.
Screenshot:
Kindly find the sample for reference from the below plunker link.
Kindly revert us, if you have any concerns.
Thanks,
Dharani.