Cannot change culture sttings of the data

I want to have "." as thousand separator and "," as decimal separator. But when I tried whit setCulture('es') even loading the CDLR jsons
I need it in eh axis an in the marker label



thanks

3 Replies

BP Baby Palanidurai Syncfusion Team February 25, 2020 10:23 AM UTC

Hi Oscar, 

Greetings from Syncfusion. 

We have analyzed your query. We have prepared a sample based on your requirement. In that, we are using setCulture(‘es’) and loaded the proper CDLR, format is working fine at our end. Please find the below code snippet, 

Code snippet: 
import * as cagregorian from "./ca-gregorian.json"; 
import * as currencies from "./currencies.json"; 
import * as numbers from "./numbers.json"; 
import * as timeZoneNames from "./timeZoneNames.json"; 
import { setCulture,enableRipple, loadCldr, setCurrencyCode,  L10n, Internationalization } from '@syncfusion/ej2-base'; 
enableRipple(true); 
loadCldr(cagregorian, currencies, numbers, timeZoneNames); 
setCulture('es'); 
 
 
   

Kindly revert us, if you are still facing any issues.  

Regards, 
Baby. 



OR Oscar Ramos February 25, 2020 02:45 PM UTC

This example was not valid in my case but I found a workarround by using textRender.
Thanks


DG Durga Gopalakrishnan Syncfusion Team February 26, 2020 12:28 PM UTC

Hi Oscar, 

Most welcome. Kindly get in touch with us, if you need any further assistance. We are always happy in assisting you.  

Regards, 
Durga G 


Loader.
Up arrow icon