Contains all the points in the point chart. The shape of the points are defined in the PointsInfo property. All points share the same shape but may have different locations, colors, and Caption. Use the Values collection to add, delete, and modify points in the chart.
Note
|
Points are drawn from first to last through the collection, so later points are "on top" of earlier points.
|
Namespace: RSCharts
Delphi
|
published
property Values: TRSPointChartValues read GetValues write SetValues stored IsValuesStored;
|
Property Value
Type: TRSPointChartValues
The following code sets up a TRSPointChart to display images as the points and creates a couple of points:
Delphi
|
var
Value: TRSPointChartValue; // note, this type should be the same that the chart uses (e.g., TRS2DChartValue, TRSArrowChartValue, etc)
begin
RSPointChart1.ImageList := ImageList1;
RSPointChart1.PointsInfo.Height := ImageList1.Height;
RSPointChart1.PointsInfo.Width := ImageList1.Width;
RSPointChart1.PointsInfo.Style := ssImage;
RSPointChart1.PointsInfo.DefaultStyle := ssRectangle;
// Add first point
Value := RSPointChart1.Values.Add;
Value.Color := clRed;
Value.X := 10.0;
Value.Y := 15.0;
Value.ImageIndex := 0;
// Add second point
Value := RSPointChart1.Values.Add;
Value.Color := clBlue;
Value.X := -40.0;
Value.Y := 25.0;
Value.ImageIndex := 1;
end;
|
|