Forum > TAChart
Tachart : Accessing to series ...
(1/1)
Gozaki:
Hello !
Newcomer to Lazarus, I've a question regarding the Tachart Component.
How to do something like that :
form1.chart1.Series.Items[nbrtrace].AddXY(i*step,j,'',clRed);
Thanks
typo:
Could you explain what does it mean?
Gozaki:
Sure !
I'm reading a binary file (using streams) containing interleaved oscilloscope traces. There is 16 traces in the file. I've thus created a chart with 16 series. I would like to add points to the chart series using such code :
For i:= 0 to tracenumber do
for j:=0 to xypointsnumber do
chart.serie.items.addXY (x,y,'',clred)
Thanks
typo:
Perhaps you can add them like this:
--- Code: ---TBarSeries(chart1.Series[nbrtrace]).AddXY(i*step,j,'',clRed);
--- End code ---
Gozaki:
It's working ! Thanks a lot !
Navigation
[0] Message Index