Drawing cubic spline curve
Drawing cubic spline curve
How to draw the cubic spline curve in the teechart. I am using the TeeChart 5.0 Pro ActiveX.
Hi Rama,
the spline fitting algorithm (Spline function) has been added in the TeeChart Pro v6. You can download the (fully funcional) trial version from our web site and test it.
the spline fitting algorithm (Spline function) has been added in the TeeChart Pro v6. You can download the (fully funcional) trial version from our web site and test it.
Pep Jorge
http://support.steema.com
http://support.steema.com
Hi,
Thank you for your reply. I downloaded the Teechart Pro 6.0 and prototyped. I added a series as "Series0" and added another series as "Series1". Set the "Series1" datasource as "Series0" and the Function as smoothing, it is working fine. But my requirement is I should not create the extra series "Series1". I want apply the smoothing functionality on "Series0" itself. It is not working.
Please send a example and explain the algorithm used for the soomthing.
If your example meets my requirement, I will go for the upgradation.
Regards,
Rama
Thank you for your reply. I downloaded the Teechart Pro 6.0 and prototyped. I added a series as "Series0" and added another series as "Series1". Set the "Series1" datasource as "Series0" and the Function as smoothing, it is working fine. But my requirement is I should not create the extra series "Series1". I want apply the smoothing functionality on "Series0" itself. It is not working.
Please send a example and explain the algorithm used for the soomthing.
If your example meets my requirement, I will go for the upgradation.
Regards,
Rama
Hi Rama,
I think that you want to only see the Smoothing Series, isn't it ? In that case, always you can set the Series (0) visible to false.
I think that you want to only see the Smoothing Series, isn't it ? In that case, always you can set the Series (0) visible to false.
Pep Jorge
http://support.steema.com
http://support.steema.com
Hi,
I did not find property Visible for the series.
If I set the Activate=False for the "Series0", It is not showing but appearing in the legend. I am using the LegendStyle = lsSeries and Legend.Checkboxes = true. So user can check the checkbox and see the "Series0".
Is it not possible without adding the "Series1"?
Would it be possible to send a working example?
Regards,
Rama
I did not find property Visible for the series.
If I set the Activate=False for the "Series0", It is not showing but appearing in the legend. I am using the LegendStyle = lsSeries and Legend.Checkboxes = true. So user can check the checkbox and see the "Series0".
Is it not possible without adding the "Series1"?
Would it be possible to send a working example?
Regards,
Rama
Hi Rama,
Yes, sorry, I mistake me, you must use the Acitve property.I did not find property Visible for the series.
You can set the Series(0).ShowInLegend property to false.Is it not possible without adding the "Series1"?
Sure ..:Would it be possible to send a working example?
Code: Select all
Private Sub Form_Load()
With TChart1
.Aspect.View3D = False
.AddSeries scLine
.Series(0).FillSampleValues (10)
.AddSeries scLine
.Series(1).SetFunction tfSmoothing
.Series(1).DataSource = "Series0"
.Series(0).Active = False
.Series(0).ShowInLegend = False
.Series(1).asLine.Pointer.Visible = True
.Series(1).asLine.Pointer.Style = psStar
End With
End Sub
Yes, done in the example.Is it possible join points by curve? If possible, send an example. It can solve my problem.
Pep Jorge
http://support.steema.com
http://support.steema.com
Hi,
Thanks for your answer. I have a doubt on the Pointers displayed. We added the 10 points in the example and in the chart it is displaying fourty. May be the default factor = 4 for the smoothing function. So totally fouty points.
Is it possible to mark the point exactly what we added to the series?
Is it possible to join the points with curves without using the functions?
Would it is possible for the teecahrt team to add the Series type itself as cubic spline. Already teechart is having Bezier curve as a series type.
Thanks for your answer. I have a doubt on the Pointers displayed. We added the 10 points in the example and in the chart it is displaying fourty. May be the default factor = 4 for the smoothing function. So totally fouty points.
Is it possible to mark the point exactly what we added to the series?
Is it possible to join the points with curves without using the functions?
Would it is possible for the teecahrt team to add the Series type itself as cubic spline. Already teechart is having Bezier curve as a series type.
Hi Rama,
Yes, you can do :Is it possible to mark the point exactly what we added to the series?
Code: Select all
Private Sub Form_Load()
With TChart1
.Aspect.View3D = False
.AddSeries scLine
.Series(0).FillSampleValues (10)
.AddSeries scLine
.Series(1).SetFunction tfSmoothing
.Series(1).DataSource = "Series0"
.Series(0).asLine.LinePen.Visible = False
.Series(0).ShowInLegend = False
.Series(0).asLine.Pointer.Visible = True
.Series(0).asLine.Pointer.Style = psStar
End With
End Sub
Not, that I know of.Is it possible to join the points with curves without using the functions?
I'll add on our wish list to be considered for the next releases.Would it is possible for the teecahrt team to add the Series type itself as
cubic spline. Already teechart is having Bezier curve as a series type.
Pep Jorge
http://support.steema.com
http://support.steema.com
Hi,
Thanks a lot for your help. I have a lost question that I am attaching my chart to the ChartGrid and TeeCommander. In the ChartGrid I am seeing both Series0 and Series1. How to hide(not showing) the Series0 in the ChartGrid.
If Iopen the chart editor from the Teecommander, Both series are visible. Hoe to hide here also.
Is it possible not showing the chart editor in the TeeCommander?
Regards,
Rama
Thanks a lot for your help. I have a lost question that I am attaching my chart to the ChartGrid and TeeCommander. In the ChartGrid I am seeing both Series0 and Series1. How to hide(not showing) the Series0 in the ChartGrid.
If Iopen the chart editor from the Teecommander, Both series are visible. Hoe to hide here also.
Is it possible not showing the chart editor in the TeeCommander?
Regards,
Rama
Hi,
ChartGrid1.Cols.Widths(2) = 0
You can set the Width of the Col to 0 :ng both Series0 and Series1. How to hide(not showing) the Series0 in the ChartGrid.
ChartGrid1.Cols.Widths(2) = 0
I'm afraid the only way around this is to hide the Editor icon from the TeeCommander. You can see one example of this in the TeeChart Pro Demo Features project.If Iopen the chart editor from the Teecommander, Both series are visible. Hoe to hide here also.
Pep Jorge
http://support.steema.com
http://support.steema.com
hi,
I did not find the Column width property in the ChartGrid as you mentioned ChartGrid1.Cols.Widths(2) = 0 . I am using the TeeChart Pro v6.0.0.4 evaluation version. Except this all other requirements are met.
I got a sample from the demo project for adding the required controls to the TeeCommander.
Regards,
Rama
I did not find the Column width property in the ChartGrid as you mentioned ChartGrid1.Cols.Widths(2) = 0 . I am using the TeeChart Pro v6.0.0.4 evaluation version. Except this all other requirements are met.
I got a sample from the demo project for adding the required controls to the TeeCommander.
Regards,
Rama
HI,
If I use the workaround you given till date, I have to loss some of the good features of the teechart is providing bydefault.
Is there any plans of including the cubic spline as the series type as scline,scBar,scBezier in the teechart?
Even if you give a patch which consist the cubic spline as series type. If yes, give the details.
Regards,
Rama
If I use the workaround you given till date, I have to loss some of the good features of the teechart is providing bydefault.
Is there any plans of including the cubic spline as the series type as scline,scBar,scBezier in the teechart?
Even if you give a patch which consist the cubic spline as series type. If yes, give the details.
Regards,
Rama
Hi Rama,
Yes, the Widths property does not appear putting a point afer the Cols property (we'll fix this) but I've writed manually (using the v6.05) and works , have you tried ?did not find the Column width property in the ChartGrid as you mentioned ChartGrid1.Cols.Widths(2) = 0 . I am using the TeeChart Pro v6.0.0.4 evaluation version. Except this all other requirements are met.
As I told you in my other posts it's added on our wish list to be considered for future releases, but I cannot tell for sure if will be done or when.Is there any plans of including the cubic spline as the series type as scline,scBar,scBezier in the teechart?
Pep Jorge
http://support.steema.com
http://support.steema.com