Free Support Forum - aspose.com

Bar chart with Percentage in Y axis

Hi ,
I have followed the below link and created normal chart https://docs.aspose.com/display/slidesjava/Creating+and+Updating+Chart+in+a+Slide#CreatingandUpdatingChartinaSlide-CreateNormalCharts .

I would like to know how to display the Y-axis values as percentage instead of numbers?

@arumugamt,

I have observed your requirements and suggest you to please try using following sample code on your end to display chart vertical axis as percentage.

    chart.Axes.VerticalAxis.IsNumberFormatLinkedToSource = false;
   
    chart.Axes.VerticalAxis.NumberFormat = "0.00%";

Thanks a lot for your reply . Is it possible to give sample bar chart code to create Bar_Chart.jpg (8.9 KB)
this screen?

@arumugamt,

I have observed your requirements and suggest you to please visit this documentation related to setting chart labels as percentage for your convenience.