IUiChart.Type

Fore Syntax

Type: ChartType;

Fore.NET Syntax

Type: Prognoz.Platform.Interop.Chart.ChartType;

Description

The Type property determines a chart type.

Comments

The default type of the chart is a histogram.

Fore Example

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);
Begin
    UiChart1.Type := ChartType.Lines;
    UiChart1.Style := ChartStyle.Relative;
    UiChart1.Orientation := ChartOrientation.LeftToRight;
    UiChart1.PointCount := 5;
    UiChart1.SerieCount := 10;
    UiChart1.DisplayVolume3D := True;
    UiChart1.DisplaySecondaryAxis := False;
    UiChart1.DisplayLegend := True;
    UiChart1.ComponentCount;
End Sub Button1OnClick;

After executing the example the following settings are determined for the chart:

Fore.NET Example

To execute the example, place the button1 button, the UiChartNet component named UiChartNet1 and the ChartBoxNet component named ChartBoxNet1 on the 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);
Begin
    UiChartNet1.Type := ChartType.chtLines;
    UiChartNet1.Style := ChartStyle.chsRelative;
    UiChartNet1.Orientation := ChartOrientation.choLeftToRight;
    UiChartNet1.PointCount := 5;
    UiChartNet1.SerieCount := 10;
    UiChartNet1.DisplayVolume3D := True;
    UiChartNet1.DisplaySecondaryAxis := False;
    UiChartNet1.DisplayLegend := True;
End Sub;

After executing the example the following settings are set for the chart:

See also:

IUiChart