jjoe64 / GraphView

Android Graph Library for creating zoomable and scrollable line and bar graphs.
https://github.com/jjoe64/GraphView/wiki
Other
2.76k stars 811 forks source link

Smooth line data #642

Open eakteam opened 5 years ago

eakteam commented 5 years ago

By default the graph make strait lines , how to use smooth one like B example in the picture ?

HLvBS

eakteam commented 5 years ago

Anyone have any idea how to implement above Line ?

qq84266454 commented 4 years ago

have you solved it,if yes.please help me.

qq84266454 commented 4 years ago

Anyone have any idea how to implement above Line ?

have u solved it. I need to implement it too

joyiitk commented 3 years ago

Need solution on this

blubbub commented 2 years ago

Try this: 1) Create many points by interpolating between the original points. 2) Smooth the data using a smoothing algorithm such as a moving average, here's a good example: http://195.134.76.37/applets/AppletSmooth/Appl_Smooth2.html

With enough points and good smoothing the jagged edges should disappear.