ChartArea: IVZChartArea;
The ChartArea property determines a chart plot area.
Executing the example requires that the repository contains an express report with the EAX_BUBBLECHART identifier containing a bubble chart.
Add links to the Express, Metabase, Visualizators system assemblies.
Sub UserProc;
Var
MB: IMetabase;
Express: IEaxAnalyzer;
BC: IVZBubbleChart;
ChartArea: IVZChartArea;
Begin
MB := MetabaseClass.Active;
// Express report with bubble chart
Express := MB.ItemById("EAX_BUBBLECHART").Edit As IEaxAnalyzer;
// Get bubble chart
BC := Express.BubbleChart.BubbleChart;
// Set up chart plot area
ChartArea := BC.ChartArea;
ChartArea.Brush := New GxLinearGradientBrush.Create(GxColor.FromKnownColor(GxKnownColor.LightGray), GxColor.FromKnownColor(GxKnownColor.SlateGray), 270);
ChartArea.Pen := New GxPen.CreateSolid(GxColor.FromKnownColor(GxKnownColor.SteelBlue), 3);
// Save changes
(Express As IMetabaseObject).Save;
End Sub UserProc;
After executing the example, chart plot area settings are changed: gradient fill and border are will be set.
See also: