InteractiveMode: ChartInteractiveMode;
The InteractiveMode property determines an interactive mode.
The Selection mode is used by default, that is, the mode of chart objects selection.
To execute the example, create a form, add the following elements to the form: a button named Button1, the ChartBox component named ChartBox1, the UiChart component named UiChart1, specify UiChart1 as a data source of the ChartBox component, determine values of the PointCount and SerieCount properties for the UiChart component, and add links to the Chart and MathFin system assemblies in the unit assembly inspector.
Class OBJ725Form: Form
Button1: Button;
UiChart1: UiChart;
ChartBox1: ChartBox;
Sub UiChart1OnGetDataValue(Sender: Object; Args: IUiChartGetDataValueEventArgs);
Begin
Args.Result := True;
Args.Value := Math.Rand;
End Sub UiChart1OnGetDataValue;
Sub UiChart1OnGetSerieName(Sender: Object; Args: IUiChartSerieNameEventArgs);
Begin
Args.Result := "Series " + Args.SerieIndex.ToString;
End Sub UiChart1OnGetSerieName;
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Chart: IChart;
Begin
Chart := UiChart1.Chart;
Chart.InteractiveMode := ChartInteractiveMode.EditByPoint;
Chart.EditedSerie := 0;
End Sub Button1OnClick;
End Class OBJ725Form;
Clicking the Button1 button sets the EditByPoint interactive mode, and the series with the 0 index is selected for edit.
See also: