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 ?
How to use tfCrossPoints
Hi Hans,
it should work using :
m_Chart.Series(lSerie).SetDataSource(COleVariant("Series0,Series1"));
it should work using :
m_Chart.Series(lSerie).SetDataSource(COleVariant("Series0,Series1"));
Pep Jorge
http://support.steema.com
http://support.steema.com
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.
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.
Hi Hans,
could you please send me (to pep@steema.com) one example with which I can see the problem here ?
could you please send me (to pep@steema.com) one example with which I can see the problem here ?
Pep Jorge
http://support.steema.com
http://support.steema.com