Type: ChartType;
Type: Prognoz.Platform.Interop.Chart.ChartType;
The Type property determines a chart type.
The default type of the chart is a bar chart.
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);
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 set for the chart:
Chart type is linear.
Chart scale type is relevant.
Left to right.
Number of points is five.
Number of series is ten.
Chart structure is 3D.
Secondary axis is not displayed.
The chart is displayed with the legend.
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);
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:
Chart type is linear.
Chart scale type is relevant.
Left to right.
Number of points is five.
Number of series is ten.
Chart structure is 3D.
Secondary axis is not displayed.
The chart is displayed with the legend.
See also: