Frequently Asked Component Specific Questions
Options |
Display all FAQ items |
Displaying items 1 to 1 of 1, page 1 of 1
<< previous next >>



Selecting points in a series
Below is a sample code with XYLine chart that allows selection of the point with the SelectedIndex property.
var I: Integer; begin with AdvChartView1.Panes[0] do begin Range.RangeTo := 10; Series.Clear; with Series.Add do begin ChartType := ctxyLine; SelectedIndex := 4; SelectedMark := True; for I := 0 to 10 do AddSingleXYPoint(I / 2, Random(100), RGB(Random(255), Random(255), Random(255))); end; end;