AutoMax: Boolean;
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 is set by user or via the IVZChartAxis.Max property at chart axis.
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 := "Factor 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;
Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Visualizators;
…
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
Express: IEaxAnalyzer;
BC: IVZBubbleChart;
CA: IVZChartAxis;
Begin
// Get repository
MB := Params.Metabase;
// 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.vukHundreds;
// Change axis title text
CA.Caption.Text := "Factor 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;
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: