Chart Auto Y-Axis Float Value

Stimulsoft Reports.JS discussion
Post Reply
yeetobiichi
Posts: 5
Joined: Sat May 11, 2024 7:56 am

Chart Auto Y-Axis Float Value

Post by yeetobiichi »

Hello all.
When I'm trying to make a line chart with float value, I set the y axis to not start with zero and range to be auto. It turns out that the final chart will have extra digits I don't want. My guess is when calculating the range, it converts the value to JS float, which "lost the precision" and made it not accurate. :oops:
The source data are String with 2 digits. Is there anyway to restrict the y-axis digits?
setting.png
setting.png (13.65 KiB) Viewed 1926 times
preview.png
preview.png (81.49 KiB) Viewed 1926 times
Lech Kulikowski
Posts: 7287
Joined: Tue Mar 20, 2018 5:34 am

Re: Chart Auto Y-Axis Float Value

Post by Lech Kulikowski »

Hello,

Please send us a sample report with test data that reproduces the issue for analysis.

Thank you.
yeetobiichi
Posts: 5
Joined: Sat May 11, 2024 7:56 am

Re: Chart Auto Y-Axis Float Value

Post by yeetobiichi »

Update: This isn't the js verison. See response below!

Thank you for your response.
Interestingly, when I was trying to recreate the error with the online designer [https://designer.stimulsoft.com/], it didn't appear on the online one. I suspect the version I'm using was an old version and the issue is already fixed at some point.
I'm contacting our tech person to see what is happening.
from_designer.png
from_designer.png (63.18 KiB) Viewed 1913 times
Last edited by yeetobiichi on Mon May 13, 2024 2:11 am, edited 1 time in total.
Yeet through all the difficulties
yeetobiichi
Posts: 5
Joined: Sat May 11, 2024 7:56 am

Re: Chart Auto Y-Axis Float Value

Post by yeetobiichi »

Hi,
Our tech person informed me that the version on [https://designer.stimulsoft.com/] is not js version, and therefore the issue isn't there.
We aren't using the latest version, but the issue also appears same on https://demo.stimulsoft.com/demo_js_202 ... igner.html

Attached are the report I made on the trail latest version with sample data
test_data.json
(1.06 KiB) Downloaded 227 times
report-issue.mrt
(40.91 KiB) Downloaded 287 times
Yeet through all the difficulties
Lech Kulikowski
Posts: 7287
Joined: Tue Mar 20, 2018 5:34 am

Re: Chart Auto Y-Axis Float Value

Post by Lech Kulikowski »

Hello,

We need some time to check and fix the issue. We will let you know about the result.

Thank you.
#14434
Lech Kulikowski
Posts: 7287
Joined: Tue Mar 20, 2018 5:34 am

Re: Chart Auto Y-Axis Float Value

Post by Lech Kulikowski »

Hello,

The issue is fixed. Please check the next release build.

Thank you.
Post Reply