I have a 2D stack chart, how do I show the value for each part of the stack bar on the chart?
I tried this but nothing happen:
ChartTextAppearance t = new ChartTextAppearance();t.Visible = true;t.ItemFormatString = "<DATA_VALUE_ITEM:#0.##>";t.Row = -2;t.Column = -2;t.HorizontalAlign = System.Drawing.StringAlignment.Center;
I put this piece of code just before I databind the chart.
Thanks
Thanks,But in my code listed above I forget the following:UltraChart2.BarChart.ChartText.Clear();UltraChart2.BarChart.ChartText.Add(t);Even with those 2 lines, nothing happen.Should I put this code under a specific event?Thanks
Hi,
You have done everything; now need to add “t” to the ChartText collection:
this.UltraChart1.BarChart.ChartText.Add(t);