Hi,
Is it possible in anyway to create a Spline Chart (line this http://upload.wikimedia.org/wikipedia/c ... ne.svg.png)
At the moment I find no way to create a Spline Chart.
I have found a Spline Java Class in the SDK, but actually I have no idea what to do with this class. Seems to float around....
Thanks!
Steven.
Create Spline Chart
Re: Create Spline Chart
Hi Steven,
Being line1 a Line series, it's as simple as setting:
TeeChart will create the SpLine and will do the necessary calculations internally.
Being line1 a Line series, it's as simple as setting:
Code: Select all
line1.setSmoothed(true);
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
-
- Newbie
- Posts: 21
- Joined: Tue Nov 15, 2011 12:00 am
Re: Create Spline Chart
Hi,
Thanks for your Reply,
I am using Java for Android. Seems the method setSmooth() does not exist. This is what I currently do, instead (I kind of assume this is the same):
Line line = new Line(chart.getChart);
Smoothing s = new Smoothing();
line.setFunction(s);
line.setDataSourcce(line0); // line0 is my reference non-spline line
line.checkDataSource();
However, the line is not very "curvey". just looks like the reference line, with a little tiny bit of a curve. I want to create a wave type curve line. (not the zig-zag type).
Thanks!!
Steven.
Thanks for your Reply,
I am using Java for Android. Seems the method setSmooth() does not exist. This is what I currently do, instead (I kind of assume this is the same):
Line line = new Line(chart.getChart);
Smoothing s = new Smoothing();
line.setFunction(s);
line.setDataSourcce(line0); // line0 is my reference non-spline line
line.checkDataSource();
However, the line is not very "curvey". just looks like the reference line, with a little tiny bit of a curve. I want to create a wave type curve line. (not the zig-zag type).
Thanks!!
Steven.
Re: Create Spline Chart
Hi Steven,
Right, that's a new feature for the coming v2012. Excuse me for the confusion generated.
By default, the Smoothing function has a factor=4. You can set a higher factor to have more points and draw a more curved line. For example:
Right, that's a new feature for the coming v2012. Excuse me for the confusion generated.
By default, the Smoothing function has a factor=4. You can set a higher factor to have more points and draw a more curved line. For example:
Code: Select all
s.setFactor(8);
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
-
- Newbie
- Posts: 21
- Joined: Tue Nov 15, 2011 12:00 am
Re: Create Spline Chart
Thanks, that did the trick!