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
100
ColumnChart3D - annotations above each column not showing
posted

  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
            }
        }

Parents
  • 995
    Suggested Answer
    posted

    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

Reply Children