Fl_chart: Prevent line curvature overshooting

Created on 15 Jun 2019  路  7Comments  路  Source: imaNNeoFighT/fl_chart

Thanks for this plugin. It's really fantastic and you're really killing it!

I love the curved lines, but they cause data confusion due to "overshooting" their data point. Changing curvature smoothness doesn't seem to fix this specific issue.

Flat:

image

Curved:

image

Becomes especially problematic if you see the actual data points:

image

Can we do something like this crummy Photoshop job?

image

Basically, keep curvature, but prevent overshooting?

enhancement

Most helpful comment

fixed on 0.1.2, added preventCurveOverShooting on LineChartBarData

preventCurveOverShooting = false

preventCurveOverShooting = true

All 7 comments

Hi, pleasure is mine.
Thats a bad issue,
I will find a solution ASAP
Thanks for report!

did you try to set curveSmoothness less than 0.35?
(the default value is 0.35, you can decrease it)

Yes, doesn鈥檛 have the same effect. I want curves, just not overshooting curves. Thank you!

Yes it doesn't have the same effect, but can be used as temporary solution, until I will be free to work on it.

fixed on 0.1.2, added preventCurveOverShooting on LineChartBarData

preventCurveOverShooting = false

preventCurveOverShooting = true

It would be nice if you share the result on your sample here

Thanks for this! It's awesome, but while almost all of my graphs works well there are some that with preventCurveOverShooting = true looks like this (see the right side)
IMG_1828

Was this page helpful?
0 / 5 - 0 ratings