Retrieve chart axis values

Hi,

I have set the chart to autoscale for vertical axis. Is there a way to retrieve the automatic value (min and max) that the chart sets it to.
The following command doesn’t give me that value:
chart.Axes.VerticalAxis.MaxValue
It is used to set the max value of the axis but it doesn’t retrieve the value.
Thanks
Thameez



Hi Thameez,

Thanks for inquiring Aspose.Slides.

I have observe the issue shared by you and request you to please share the requirement in the form of sample presentation and snapshot that what actually you want from Aspose.Slides to offer in your scenario. I will investigate them on my end to help you further in this regard.

Many Thanks,

Hi,

I have one series ( “Launch Date” ) which has only one datapoint, that I want to be set automatically to the vertical axis max value.

I am using the below command to set the value of the “Launch Date” series datapoint to the max value of vertical axis. But as you can see from the attached slide it initializes to zero (No vertical black line in the chart).

series.DataPoints.Item(intDateIdLaunchDate).Value.Data = chart.Axes.VerticalAxis.MaxValue

I have attached a second slide (slide #2), which is how I want it to look.

Thanks
Thameez







Hi Thameez,

I have observed the presentation files shared by you. Unfortunately, I am unable to open the charts in both presentation for edit mode in order to view the data. I request you to please provide the sample project and actual source presentation used. I will investigate the requirements on my end to help you further in this regard.

Many Thanks,

I have attached a sample project. You will notice that the “Launch Date” series doesn’t get the value set from the max value of vertical axis.



Hi Thameez,

I have worked with the sample project shared by you and have been able to understand and use that to an extent to achieve the desired goal. I have made the modifications in the sample code as per attached image and bar is plotting on my end after this change. For your kind reference, I have also attached the modified sample project as well.

Many Thanks,