Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

Formatting data labels

Last post 06-30-2008 10:57 by [Infragistics] Max Rivlin. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-30-2008 1:39

    Formatting data labels

    Hi,

    I don't need the decimal point and the decimal values to appear in the data labels.

    Is there a way to format the data labels appearing on top of the column chart?

    If so, where exactly should the property be handled?

     

    Also, I need to truncate the labels appearing at the bottom of chart. They should also be aligned at 45 degrees to the bars.

    I need help on both these issues.


    With Regards,
    Saravana Kumar M R
    • Post Points: 20
  • 06-30-2008 10:57 In reply to

    Re: Formatting data labels

    For formatting, set the format string on the ChartText item that you've added to the chart:
    UltraChart1.ColumnChart.ChartText[0].ItemFormatString = "<DATA_VALUE:0>";

    For orientation:
    UltraChart1.Axis.X.Labels.Orientation = TextOrientation.Custom;
    UlltraChart1.Axis.X.Labels.OrientationAngle = 45;

    For ellipsis you can set
    UltraChart1.Axis.X.Labels.Layout.Behavior = AxisLabelLayoutBehaviors.Auto;
    or you can add a ClipTextBehavior to the Layout.BehaviorCollection and set Behavior to UseCollection.
    http://help.infragistics.com/Help/NetAdvantage/NET/2008.2/CLR2.0/html/Chart_Axis_Label_Layout_Behaviors.html

    • Post Points: 5
Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems