Version

Anti-Collision Axis Labels

Previously, depending on the size and content of your chart, x-axis and y-axis labels may have collided or overlapped. For example, in the Column chart below, notice the x-axis labels have been cut off by the horizontal series labels.

anti collision axis labels

Starting in the 2006 Volume 2 release, the AxisLabelAppearanceBase.Layout property has been added to the Chart control. This feature allows you to configure each chart axis to use various anti-collision strategies in order to prevent chart labels from colliding into each other. These strategies include font scaling, text wrapping, rotation, label staggering in alternate rows, and text clipping. Additionally, you can configure the chart axes to use a built-in intelligent anti-collision layout algorithm to prevent label collisions, or you can manually define a set of anti-collision strategies that the chart will use to prevent label collisions.

The Column chart below is an example of the new Anti-Collision Axis Labels feature in effect. Notice the automatic layout changes that the feature made to ensure there is enough room to display the long x-axis labels, along with the series labels. It scaled the font of the axis labels, wrapped the text of the axis labels, and clipped the text of the series labels.

anti collision axis labels