SetPointSerieCount(PointCount: Integer; SerieCount: Integer);
SetPointSerieCount(PointCount: System.Int32, SerieCount: System.Int32);
PointCount. Number of points on the line.
SerieCount. Number of series on the line.
The SetPointSerieCount method allows to set the number of series and points on the 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.SetPointSerieCount(5, 2);
End Sub Button1OnClick;
After executing the example the chart contains 5 points and 2 data series.
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 button2_Click(sender: System.Object; e: System.EventArgs);
Begin
UiChartNet1.SetPointSerieCount(5, 2);
End Sub;>
After executing the example the chart contains 5 points and 2 data series.
See also: