How to use tfCrossPoints

TeeChart for ActiveX, COM and ASP
Post Reply
Hans
Newbie
Newbie
Posts: 6
Joined: Tue Nov 02, 2004 5:00 am

How to use tfCrossPoints

Post by Hans » Wed Nov 10, 2004 8:03 am

I am trying to add a crosspoint line to my chart, but I cannot find how to add datasources to my crosspointline.

My current code (simplified) looks like this, but does not work :

lSerie = m_TChart.AddSeries(scPoint);
m_TChart.Series(lSerie).SetFunction(tfCrossPoints);
m_TChart.Series(lSerie).SetDataSource(COleVariant("Series0"));
m_TChart.Series(lSerie).SetDataSource(COleVariant("Series1"));

The two other lines (Series) are already drawn into the chart, and I need to mark the crosspoints. How to solve this problem ?

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Wed Nov 10, 2004 12:46 pm

Hi Hans,

it should work using :
m_Chart.Series(lSerie).SetDataSource(COleVariant("Series0,Series1"));

Hans
Newbie
Newbie
Posts: 6
Joined: Tue Nov 02, 2004 5:00 am

Post by Hans » Wed Nov 10, 2004 2:05 pm

Thanks,

But now I get the problem that I get two cross points, where the two lines only cross once.

The first line is a scPoint3D smoothed line, the second a scFastLine.

The crosspoint serie is a scPoint with only diplaying the cross points. The second (non existing) crosspoint is on the scFastLine, but does not cross the scPoint3D line.

Any ideas ?

If I import my exported .tee file of the failing series, and import it in a clean VB project, it fails in Teechart 6 and Teechart 7.

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Fri Nov 12, 2004 12:12 pm

Hi Hans,

could you please send me (to pep@steema.com) one example with which I can see the problem here ?

Post Reply