ArthurGuibert/FSLineChart

Line going in -ve axis while having all data in positive numbers.

MVakas opened this issue · 3 comments

screen shot 2014-12-11 at 12 17 57 pm
Why the live goes down when it has all the data as positive numbers?

The chart is based on the following data.
2014-12-11 12:17:54.631 BIDSA[4630:934802] 81
2014-12-11 12:17:54.631 BIDSA[4630:934802] 94119
2014-12-11 12:17:54.631 BIDSA[4630:934802] 2474
2014-12-11 12:17:54.631 BIDSA[4630:934802] 3180
2014-12-11 12:17:54.631 BIDSA[4630:934802] 1242
2014-12-11 12:17:54.631 BIDSA[4630:934802] 10379
2014-12-11 12:17:54.632 BIDSA[4630:934802] 66356
2014-12-11 12:17:54.632 BIDSA[4630:934802] 1450
2014-12-11 12:17:54.632 BIDSA[4630:934802] 3435
2014-12-11 12:17:54.632 BIDSA[4630:934802] 7642

It's related to the smoothing function. To avoid this kind of behavior a simple thing to do is to change the smoothing factor to a lower value

chart.bezierSmoothingTension = 0.05;

or to turn it off completely:

chart.bezierSmoothing = NO;

Thanks for the help and great work. Somehow I figured it out myself as well.

Sent from my iPhone

On 14-Dec-2014, at 3:08 pm, Arthur notifications@github.com wrote:

It's related to the smoothing function. To avoid this kind of behavior a simple thing to do is to change the smoothing factor to a lower value

chart.bezierSmoothingTension = 0.05;
or to turn it off completely:

chart.bezierSmoothing = NO;

Reply to this email directly or view it on GitHub.