When a data point is expected to appear in the chart ?
Posted: Tue Aug 01, 2023 7:22 pm
I am facing some problem that I cannot figure out where it is. I will try to describe the steps I did
I am reading a file with X and Y values.
before adding the values to a Serie, I set :
Then I add the values to the Serie:
After adding the data values, I perform the checking of the axis scales and adjust them accordingly. Then, after adjust the scales set the autorepaint to true and perform a repaint:
Here comes what I don´t understand.
After the Repaint method, the chart do not have any point. If I check the count property of the chart, it has at least one point:
So my question, when does teechart decides to display the data on the chart ?
Regards.
Angelo
I am reading a file with X and Y values.
before adding the values to a Serie, I set :
Code: Select all
frm.TChart1.AutoRepaint = false.
Code: Select all
frm.TChart1.Series(0).AddXY Xdata, Ydata, "", &H80&
Code: Select all
frm.TChart1.AutoRepaint = True
frm.TChart1.Repaint
After the Repaint method, the chart do not have any point. If I check the count property of the chart, it has at least one point:
frm.TChart1.Series(0).count
returns the value 1 or greater.So my question, when does teechart decides to display the data on the chart ?
Regards.
Angelo