Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New rounding for the step of the axis #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lynn2910
Copy link

Summary

The current axis system has an issue with floating point precision. For instance, if the step value is set to 0.1, we encounter precision errors where values like 9.99 or 10 are represented inaccurately as floating point values with many decimal places.

Changes

I have added functionality to round these values to the second decimal place to mitigate this issue. Additionally, I plan to introduce a new parameter in the graph settings that will allow users to specify the desired level of rounding, or disable it altogether if they prefer.

Screenshots

image

Future Work

Implement a parameter in the graph configuration to allow users to choose the precision for rounding.
Ensure that the rounding functionality is optional and customizable according to user preferences.

The step in the axis will now be rounded to 2 digits, which resolve the problem of the floating points
@lynn2910
Copy link
Author

For references: #18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant