Chart: IChart;
Chart: Prognoz.Platform.Interop.Chart.DxChart;
The Chart property returns the object of the IChart type, which includes the element of the chart.
To execute the example, place the Button1 button, the UiChart component named UiChart1 and the ChartBox component named ChartBox1 on the form. Add a link to the Chart system assembly.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
ChartProp: IChart;
Begin
ChartProp := UiChart1.Chart;
ChartProp.DisplayLegend := True;
ChartProp.Orientation := ChartOrientation.LeftToRight;
ChartProp.DisplayVolume3D := True;
End Sub Button1OnClick;
After executing the example a 3D chart oriented from left to right with legend is displayed.
To execute the example place the button1 button, the UiChartNet component named UiChartNet1 and the ChartBoxNet component named ChartBoxNet1 on the .NET form. Add links to the Chart and Forms system assemblies.
Imports Prognoz.Platform.Interop.Chart;
Imports Prognoz.Platform.Interop.Forms;
...
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
ChartProp: IChart;
Begin
ChartProp := UiChartNet1.ChartUi.Chart;
ChartProp.DisplayLegend := True;
ChartProp.Orientation := ChartOrientation.choLeftToRight;
ChartProp.DisplayVolume3D := True;
End Sub;
After executing the example a 3D chart oriented from left to right with legend is displayed.
See also: