FlexChart- Formatting Data

Posted by: mwebster on 19 July 2019, 3:32 pm EST

    • Post Options:
    • Link

    Posted 19 July 2019, 3:32 pm EST

    I have added a Flexchart to my application. (vb.net Winforms) and it is very easy to work with. I do have one question though. How can I format the data displayed? The chart I am using shows total opportunities and total quotes for each sales rep as a dollar figure. The trouble I that the amounts show up as 50678 rather than $50,678. Is there a way to apply that formatting to the series when it is bound to the chart control?

    Thanks,

    Mike

  • Posted 22 July 2019, 12:20 am EST

    Hi Mike,

    Since data range in a chart is displayed by its Axes so, FlexChart provides an Axis.Format property to format axis labels. You can specify the axis labels to be formatted as currency values as follows:

    FlexChart1.AxisY.Format = "C0"
    

    However, if you are using DataLabels to display the data point values then you can specify formatting as follows:

    FlexChart1.DataLabel.Position = C1.Chart.LabelPosition.Top
    FlexChart1.DataLabel.Content = "{value:C0}"
    
    

    Hope this will help.

    Thanks,

    Basant

  • Posted 22 July 2019, 8:28 am EST

    Fantastic. Thanks

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels