gorteganesh / achartengine

Automatically exported from code.google.com/p/achartengine
0 stars 0 forks source link

Feature: Spline curves #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice to have some kind of spline curves (smoothed curves) in 
addition to (edgy) line charts.
would need some kind of interpolation.

best regards, achim

Original issue reported on code.google.com by achim.ha...@googlemail.com on 25 Jan 2011 at 9:09

GoogleCodeExporter commented 9 years ago
Data manipulation sounds like a job for another library.  You can accomplish 
smoothing by interpolating your data ahead of plotting it using something like 
the Apache Commons Math library:  
http://commons.apache.org/math/userguide/overview.html

Regards,

Eric

Original comment by ericdla...@gmail.com on 11 Apr 2011 at 3:33

GoogleCodeExporter commented 9 years ago

Original comment by dandrome...@gmail.com on 30 May 2011 at 3:23

GoogleCodeExporter commented 9 years ago
I just downloaded the source, and implemented it, but don't know how to 
contribute the code. 

Original comment by kaj.bjur...@gmail.com on 25 Jul 2011 at 5:08

GoogleCodeExporter commented 9 years ago
Here's the source for the CubicLineChart, and some example code. I also had 
some changes in the "random demo", but reverted them. Would be nice if you 
added an entry there too. 

The smoothness parameter is explained a bit in the class. It's basically how 
"near" the way points should be placed to the control point that it is 
approaching. A smoothness of 0.1 mean that waypoint should be placed 10% away 
from the control point, smoothness of 0.5 means that is should be placed half 
way there. 0.1 will generate less smooth, but more accurate, and 0.5 will be 
very smooth.

Original comment by kaj.bjur...@gmail.com on 25 Jul 2011 at 7:52

Attachments:

GoogleCodeExporter commented 9 years ago
I modified the code a little bit and checked in.
Thanks a lot for the great contribution. SVN rev. r262.

Original comment by dandrome...@gmail.com on 26 Jul 2011 at 3:02