- Home
- Forum
- JavaScript - EJ 2
- thousand separator (space) and decimal separator (.)
thousand separator (space) and decimal separator (.)
Hello,
How can I do this ?
I'm french and I would like to display numbers with this options :
- Thousand Separator : (space)
- Decimal Separator : (.)
- grouping by 3
For example : 2,528,255.77 would become 2 528 255.77
How can I do this ?
Thanks.
SIGN IN To post a reply.
3 Replies
1 reply marked as answer
SN
Sivamathi Natarajan
Syncfusion Team
October 22, 2020 08:39 AM UTC
Thanks for contacting Syncfusion support.
We have checked the reported problem at our end. But we are unable to reproduce the problem. So, we have prepared a sample to trigger pointClick event in pivot chart. Please check the below sample.
Code Example:
|
<ejs-pivotview #pivotview id='PivotView' showFieldList='true' width='100%' height='450'
[displayOption]='displayOption' [dataSourceSettings]=dataSourceSettings [chartSettings]='chartSettings' (dataBound)='dataBound($event)'>
</ejs-pivotview>
pointClick(args: any): void {
console.log(args);
}
dataBound(args: any): void {
this.pivotObj.chart.pointClick = this.pointClick.bind(this);
}
|
We hope the above sample meets your requirements.
Regards,
Sivamathi.
GM
Gauthier MAIROT
October 22, 2020 09:23 AM UTC
Hi,


I think misundertood each other...
In this following example : https://ej2.syncfusion.com/javascript/demos/#/material/pivot-table/olap.html
For bikes sales, we have :
I would like format numbers like this :
Thousand separator with space, decimal seperator with . , grouping by 3.
Regards,
SN
Sivamathi Natarajan
Syncfusion Team
October 22, 2020 09:56 AM UTC
Sorry for the inconvenience caused.
Please refer the respective *.json files to load the required currency. Meanwhile, we have prepared a sample for your reference with French currencies. Please check the below sample and UG.
UG: https://ej2.syncfusion.com/documentation/pivotview/globalization-and-localization/#globalization
Please check the below screenshot. Here you can customize separators and grouping.
As per your requirement, you can change the decimal/thousand separators and grouping in numbers.json file. Please check the below screenshot for your reference.
Note: The decimal points will change only when the system culture is changed to French. Otherwise, it shows the values in US culture.
Regards,
Sivamathi.
Marked as answer
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
- Marked answer
-
GM Gauthier MAIROT
- Oct 21, 2020 02:52 PM UTC
- Oct 22, 2020 09:56 AM UTC