Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
35
Text on the top of bars is overlapping with other bars in column chart
posted

Hi,

I am using Column Chart and using ChartTextAppearance class to display text on the top each bar. But that text is overlapping with other bar in column chart. 

So, do we have any property available, by using which we can rotate the text. I was thinking to change its orientation to BottomToTop, but didn't find anything relevant property to do this.

This is my code:

if (chartType.Equals(ChartType.ColumnChart))
{
ChartTextAppearance chartText = new ChartTextAppearance();
chartText.ItemFormatString = isAmt ? "<DATA_VALUE:C>" : "<DATA_VALUE>";
chartText.Visible = true;
chartText.Row = -2;
chartText.Column = -2;
chartText.ClipText = true;
chartText.ChartTextFont = new Font("Arial", 9, FontStyle.Bold);
chartText.VerticalAlign = StringAlignment.Far;
chartText.HorizontalAlign = StringAlignment.Center;
ultraChart.ColumnChart.NullHandling = NullHandling.DontPlot;
ultraChart.ColumnChart.ChartText.Add(chartText);
}

Parents Reply Children
No Data