Value3: Double;
Value3: Double;
The Value3 property determines bubble chart bubble size.
To get source data by OX, OY axis, use the IUiChartGetDataValueEventArgs.Value2 and IUiChartGetDataValueEventArgs.Value properties.
Executing the example requires a form containing the ChartBox component with the ChartBox1 identifier and the UiChart component with UiChart1 identifier. Specify UiChart1 as a data source for the ChartBox1 component.
Add links to the Chart, ExtCtrls, Forms system assemblies.
The example is a handler of the OnGetDataValue event for the UiChart1 component.
Sub UiChart1OnGetDataValue(Sender: Object; Args: IUiChartGetDataValueEventArgs);
Begin
Args.Result := True;
Args.Value := Args.SerieIndex + Args.SerieIndex + 1;
Args.Value2 := Args.SerieIndex + Args.SerieIndex + 2;
Args.Value3 := Args.SerieIndex + Args.SerieIndex + 1;
End Sub UiChart1OnGetDataValue;
After executing the example a bubble chart is built by the specified number of series and bubbles, which size depends on the specified initial size.
Executing the example requires a .NET form containing the ChartBoxNet component with ChartBoxNet1 identifier and the UiChartNet component with the UiChartNet1 identifier. Specify UiChartNet1 as a data source for the ChartBoxNet1 component.
The example is a handler of the OnGetDataValue event for the UiChartNet1 component.
Private Sub uiChartNet1_OnGetDataValue(Sender: System.Object; Args: Prognoz.Platform.Interop.Chart.UiChartGetDataValueEventArgs);
Begin
Args.Result := True;
Args.Value := Args.SerieIndex + Args.SerieIndex + 1;
Args.Value2 := Args.SerieIndex + Args.SerieIndex + 2;
Args.Value3 := Args.SerieIndex + Args.SerieIndex + 1;
End Sub
The result of the Fore.NET example execution matches with that in the Fore example.
See also: