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
633
Displaying tool tips and labels in 3D STACK CHART
posted

HI!

I had a normal 2D stack chart, to which i was binding my data. The stack chart data values on its bars.

I used the following code to display data values on the bars. When i changed the type to a 3dstackChart, the data labels disappeared. How do i get them back.

ChartTextAppearance t = new ChartTextAppearance();

t.Visible = true;

t.ItemFormatString = "<DATA_VALUE_ITEM:#0.##>";

t.Row = -2;

t.Column = -2;

t.HorizontalAlign =
StringAlignment.Center;

MainChart.BarChart.ChartText.Clear();

MainChart.BarChart.ChartText.Add(t);