The accuracy problem will cause the maximum and minimum values in the screen to change, causing the Chart to shake up and down.
Cause of the problem
In my project lowestVisibleX sometimes returns 386.5 and sometimes returns 386.49999999999999.
When calling the following method
When the value of lowestVisibleX is 386.5 and the value of indexFrom is 387, when the value of lowestVisibleX is 386.49999999999999, indexFrom only returns 386. As a result, the maximum value of the Y value in the screen has been changing. which in turn causes the screen graph to jump。Is there any good solution?
The accuracy problem will cause the maximum and minimum values in the screen to change, causing the Chart to shake up and down.
Cause of the problem
In my project lowestVisibleX sometimes returns 386.5 and sometimes returns 386.49999999999999. When calling the following method
When the value of lowestVisibleX is 386.5 and the value of indexFrom is 387, when the value of lowestVisibleX is 386.49999999999999, indexFrom only returns 386. As a result, the maximum value of the Y value in the screen has been changing. which in turn causes the screen graph to jump。Is there any good solution?
Charts Environment
Charts 4.1.0 14.3.1: 5.7: iOS running Charts: