IUiChart.Chart

Fore Syntax

Chart: IChart;

Fore.NET Syntax

Chart: Prognoz.Platform.Interop.Chart.DxChart;

Description

The Chart property returns an object of the IChart type, which includes the element of the chart.

Fore Example

To execute the example on the form place the button with Button1 name, the UiChart component with UiChart1 name and the ChartBox component with ChartBox1 name. Add reference to 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.

Fore.NET Example

To execute the example on .NET form place the button with button1 name, the UiChartNet component with UiChartNet1 name and the ChartBoxNet component with ChartBoxNet1 name. 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:

IUiChart