AutoMax: Boolean;
The AutoMax property determines whether maximum value will be calculated automatically and set at chart axis.
Available values:
True. By default. Maximum value is automatically calculated and set the chart axis.
False. Maximum value on chart axis is set by user using the IVZChartAxis.Max.
To round chart axis values and automatically calculate intervals between main grid lines, set the IVZChartGrid.AutoLineCount property to True.
Executing the example requires that the repository contains an express report with the EXPRESS identifier containing a bubble chart.
Add links to the Express, Metabase, Visualizators system assemblies.
Sub UserProc;
Var
MB: IMetabase;
Express: IEaxAnalyzer;
BC: IVZBubbleChart;
CA: IVZChartAxis;
Begin
// Get repository
MB := MetabaseClass.Active;
// Get express report
Express := MB.ItemById("EXPRESS").Edit As IEaxAnalyzer;
// Get bubble chart
BC := Express.BubbleChart.BubbleChart;
// Get X axis of bubble chart
CA := BC.AxisX;
// Disable automatic determination of maximum value on the chart axis
CA.AutoMax := False;
// Determine maximum value on the axis
CA.Max := 1000;
// Disable automatic determination of minimum value on the chart axis
CA.AutoMin := False;
// Determine minimum value on the axis
CA.Min := 100;
// Change axis scale
CA.DisplayUnit := VisualizatorUnitKind.Hundreds;
// Change axis label text
CA.Caption.Text := "Indicator value (in hundreds)";
// Display labels on the chart axis
CA.ShowLabels := True;
// Refresh bubble chart and save report
Express.BubbleChart.Refresh;
(Express As IMetabaseObject).Save;
End Sub UserProc;
After executing the example, maximum and minimum values for X axis will be determined, axis scale will be set in hundreds, and axis labels will be displayed on the express report bubble chart.
See also: