StepValue: Double;
StepValue: double;
The StepValue property determines a tick mark interval on the Y axis.
The IntervalsCount property is applicable only to value axis.
When setting a scale tick mark interval the user must set the StepMode property to the appropriate value.
Executing the example requires a form, the Button component with the Button1 identifier on the form, the ChartBox component with the ChartBox1 identifier and the UiErAnalyzer component with the UiErAnalyzer1 identifier, which is used as a data source for the ChartBox1 component. Specify the express report saved on the chart sheet as a data source for the UiErAnalyzer1 component.
The example is a handler of the OnClick event for the Button1 component.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Chart: IChart;
ChartAxis: IChartAxis;
Begin
Chart := ChartBox1.Chart;
ChartAxis := Chart.AxisY;
ChartAxis.StepMode := ChartAxisStepMode.FixedStep;
ChartAxis.StepValue := 10000;
End Sub Button1OnClick;
After executing the example tick mark intervals equal to 10000 are displayed on the Y axis.
Executing the example requires a form, the Button component with the Button1 identifier on the form, the chartBoxNet component with the chartBoxNet1 identifier and the uiErAnalyzerNet component with the uiErAnalyzerNet1 identifier, which is used as a data source for the chartBoxNet1 component. Specify the express report saved on the chart sheet as a data source for the uiErAnalyzerNet1 component.
The example is a handler of the Click event for the button1 component.
Add a link to the Chart system assembly.
Imports Prognoz.Platform.Interop.Chart;
…
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
Chart: IChart;
ChartAxis: IChartAxis;
Begin
Chart := chartBoxNet1.CtrlBox.Chart;
ChartAxis := Chart.AxisY;
ChartAxis.StepMode := ChartAxisStepMode.casmFixedStep;
ChartAxis.StepValue := 10000;
End Sub;
After executing the example tick mark intervals equal to 10000 are displayed on the Y axis.
See also: