ComponentOne Chart 8.0 for ActiveX
Positioning the Chart

 

Positioning the Chart

At run-time, the header, footer, legend, and chart area are, by default, positioned by ComponentOne Chart. The default positioning for each of these objects depends on a large number of factors, including:

·      The window's current width and height.

·      The size of the legend, header and footer areas. These, in turn, depend on the text and fonts being used.

·      The positioning of areas which have been explicitly positioned by the user program.

The 3D Chart control's default positioning algorithms will size and position the header, footer and legend areas first. The chart area will be sized and positioned to fit into the largest remaining rectangular area.

To position an area manually, change the properties of its Location object. For example, the following statement sets the Height property to change the height of the chart area:

Chart3D1.ChartArea.Location.Height.Value = 100

You can also change the following area attributes:

·      The Width property specifies the area width.

·      The Left property specifies the distance from the left edge of the area to the Y-axis.

·      The Top property specifies the distance from the top of the area to the X-axis.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback