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
240
Data Labels
posted

I am trying to change the way my labels are showing up on a LineChart. Right now the value on each point displays the decimal value I supplied. I am trying to format each point to have "<Decimal Value> (55.5%)" Where 55.5% comes from a calculation. Thanks!

  • 12773
    posted

    Hi,

    I just wanted to know if you were able to change the Label Format using the ItemFormatString following the Petia’s suggestions or you still need help? Just let me know.

    Thank you.

    Sincerely,
    Dimi
    Developer Support Engineer
    Infragistics, Inc.

  • 2406
    Suggested Answer
    posted

    Try using the ItemFormatString property of the corresponding axis:

    chart.Axis.Y.Labels.ItemFormatString property.

    If you set it to <DATA_VALUE> it should display all the decimal places. If you wanted to format the label with % you would set the ItemFormatString property to <DATA_VALUE:##.#%>.