Each label that you add to the Labels collection corresponds to the point (stack or bar) with the corresponding index. To better display the text, you can use the StaggerTexts property.
e.g.,
<code>
Chart chart = chartControl1.Charts.Add();
BarSeries barSeries1 = ( BarSeries )chart.Series.Add( SeriesType.Bar );
barSeries1.Add( 20.3, “MyLabel1” );
chart.Axis( StandardAxis.PrimaryX ).Labels.Add( “MyLabel1” );
barSeries1.Add( 19.4, “MyLabel2” );
chart.Axis( StandardAxis.PrimaryX ).Labels.Add( “MyLabel2” );
barSeries1.Add( 95.7, “MyLabel3” );
chart.Axis( StandardAxis.PrimaryX ).Labels.Add( “MyLabel3” );
barSeries1.Add( 11.9, “MyLabel4” );
chart.Axis( StandardAxis.PrimaryX ).Labels.Add( “MyLabel4” );
barSeries1.Add( 55.5, “MyLabel5” );
chart.Axis( StandardAxis.PrimaryX ).Labels.Add( “MyLabel5” );
chart.Axis( StandardAxis.PrimaryX ).ScaleMode = AxisScaleMode.Dimension;
chart.Axis( StandardAxis.PrimaryX ).DimensionScale.AutoLabels = false;
chart.Axis( StandardAxis.PrimaryX ).StaggerTexts = true;
</code>
Imported from legacy forums. Posted by CharlesB (had 3025 views)