decimal separator in graphs

Stimulsoft Reports.JS discussion
Post Reply
negrero
Posts: 5
Joined: Mon Jun 12, 2017 2:39 pm

decimal separator in graphs

Post by negrero »

I am trying to change the decimal separator of the graphs.
grid.jpg
grid.jpg (122.03 KiB) Viewed 1457 times
graph1-decimal separator.jpg
graph1-decimal separator.jpg (45.27 KiB) Viewed 1457 times
graph2-decimal separator.jpg
graph2-decimal separator.jpg (54.68 KiB) Viewed 1457 times

I have tried from graph-> Series-> Series 1 [Clutered Bar] -> Properties [data] -> format: ###. ###, ## but this does not work.

I have debugged the code and report.globalizationManager is set correctly to "is", but the graphs still display the dotted decimal separator.
debug_culture_es.jpg
debug_culture_es.jpg (80.8 KiB) Viewed 1457 times
What do you need to configure so that the decimal separator is comma?

datasources:
TotalizeByMonthFilters_time.json
(508 Bytes) Downloaded 147 times
TotalizeByMonthQuery_time.json
(2.48 KiB) Downloaded 147 times
report:
TotalizeByMonth_time.mrt
(45.23 KiB) Downloaded 150 times
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: decimal separator in graphs

Post by HighAley »

Hello.

We see the issue.
We need some time for analysis of the issue.
We will let you know about result.

Thank you.

Ticket reference: #4569
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: decimal separator in graphs

Post by HighAley »

Hello.

We have made an improvement.
You could change the decimal separator with one of next lines:

Code: Select all

Stimulsoft.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator = ",";
Stimulsoft.System.Globalization.CultureInfo.currentCulture = Stimulsoft.System.Globalization.CultureInfo.cultures["en"];
Thank you.
Post Reply