I had annotations above each column when the chart was in its flat version, but since I changed it to the 3D version I get the ChartTextAppearance( this is the object it was using to write out each column value right above the column) to show up?
Here is my code snippet for this issues
//labels above columns. if (showValues) { //Appearance // ColumnChartAppearance // ColumnChart3DAppearance
ChartTextAppearance cta = new ChartTextAppearance(); cta.Visible = true; //-2 signifies all rows or all columns cta.Row = -2; cta.Column = -2; cta.ChartTextFont = new Font("Arial", ((float)FontSize - 1.5f), FontStyle.Regular, GraphicsUnit.Point); cta.ItemFormatString = bMatchup ? " " + sValueFormat : sValueFormat;
cta.HorizontalAlign = StringAlignment.Center; cta.VerticalAlign = stack ? StringAlignment.Center : StringAlignment.Far;// Inside the bar for stack style
chart.ColumnChart.ChartText.Add(cta);
if (ValueAlignVerical) { chart.ChartDrawItem += ultraChart1_ChartDrawItem; cta.HorizontalAlign = StringAlignment.Far; cta.VerticalAlign = stack ? StringAlignment.Center : StringAlignment.Center;// Inside the bar for stack style } }
Hi,
Not all chart types support showing data labels on chart.
Data labels are not supported for a ColumnChart3D.
You can submit a feature request here:
http://devcenter.infragistics.com/protected/requestfeature.aspx
I know this answer was posted 2 years ago, but I am trying to do the same and still not working. Is this property still not supported in 3D charts?
Thanks