Replace Float with Double as backing datatype for chart data#87
Replace Float with Double as backing datatype for chart data#87gpbl merged 2 commits intogpbl:masterfrom
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.