How to localize DoughnutSeries ?

Hi,
when I do the grouping in DonutSeries, the label "Others" group appears in English, how can I put it in Portuguese ?

DoughnutSeries<SalesData, String>(
explode: true,
// First segment will be exploded on initial rendering
//explodeIndex: 1,
groupMode: CircularChartGroupMode.point,
groupTo: 13,

1 Reply 1 reply marked as answer

SK Sriram Kiran Senthilkumar Syncfusion Team December 21, 2020 11:22 AM UTC

Hi Roberto, 
  
Greetings from Syncfusion. We have analyzed your scenario with the provided information at our end and we would like to share some information regarding the onDataLabelRender callback event with which you can be able to customize the data labels while rendering in the chart. We have created a simple circular chart sample in which we have rendered a doughnut chart in grouping mode and with the help of the onDataLabelRender event, we have checked the string value of the data labels and if the value is ‘Others’ then we reassigned the Portuguese equivalent word for it in the text argument available in the event. Please refer the code snippet below for reference. 
SfCircularChart( 
            // callback event to customize the data label on rendering 
            onDataLabelRender: (args) { 
              // Checking whether the data label value is others or not, 
              // and if yes then reassign the portuguese equivalent of the 'Others' string. 
              if (args.text == 'Others') { 
                args.text = 'Outros'; 
             
            }, 
            // your configurations 
 
Screenshot: 
 
  
  
Here, you can see that the ‘Others’ data label of the grouped data points is rendered in Portuguese equivalent word ‘Outros’ and we have also attached the sample below for your reference. 
  
Please check with the above attached sample and revert us if you still have further concerns. 
  
For further reference on the onDataLabelRender event, please check the user guide below. 
  
Regards, 
Sriram Kiran 


Marked as answer
Loader.
Up arrow icon