Unfortunately not. You will need to implement your own algorithm to resize the chart as you add new bars to it. You can start by setting the MarginMode property to Stretch or Fit (depending if you want the chart to keep proportions), and set an initial value for the Margin property, and then increase of decrease margins as you increase of decrease the number of bars in the chart.
e.g.:
chart.MarginMode =
MarginMode.Stretch;
chart.Margins =
new RectangleF( 10, 10, 80, 80 );
You can look at the our Chart Explorer ( Start Menu -> All Programs -> Xceed Components -> Our components in action! -> Xceed Chart Explorer for .NET ), for examples on how to adjust margins. Go to All Examples -> Chart.
You can look at the code by clicking on the “C# Code” tab. You also will find the complete source code of the explorer in both C# and VB.NET in -> C:\Program Files\Xceed Components\Xceed Chart for .NET and ASP.NET <version>\Samples under XP, or in C:\Xceed Component Samples\Xceed Chart for .NET <version>\Samples under Vista.
Imported from legacy forums. Posted by André (had 2771 views)