-
Notifications
You must be signed in to change notification settings - Fork 165
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
Replace Float with Double as backing datatype for chart data #87
Conversation
Thanks! Could you provide an example to replicate the issue this PR is fixing? |
Hi @gpbl, Absolutely. I was plotting a set of Double points representing timestamps ( After some investigation, I realized that Bottom line, my timestamps values were losing precision and ended up creating overlapping points in the graph. Here is a sample of my timestamps values showing the problem:
Take the first two values of each stream. Although they are represented by two distinct Double numbers Please, let me know if it helps. |
- Handle gracefully empty series data by preventing optionals from being forced-unwrapped. - Introduce minor cosmetics improvements.
Hi @gpbl . Just a correction here. This is not an enhancement. This is a bug fix. Anyone using this constructor will potentially experience representation issues. Simply put, |
Thanks for your help! I think this is the time to cut a v1.0 release 👍🏽 |
This PR prevents rounding errors when charts are constructed with data composed of Double values.