Frequently Asked Component Specific Questions

Options

Display all FAQ items

Search FAQ items:


Displaying items 1 to 1 of 1, page 1 of 1

<< previous next >>

TMS VCL Chart
Modifying a single series data point value in code

If a data value changes after it was added to the series, it is easy to update the value at a later time via code. To do this, it is required to know the index of the pane, the index of the series and the index of the data point in the series. This example code snippet changes the third datapoint of first serie in the first pane of the chart:
AdvChartView1.BeginUpdate;
AdvChartView1.Panes[0].Series[0].Points[2].SingleValue := Random(100);
AdvChartView1.EndUpdate;