Thanks for inquiring Aspose.Slides.
I have observed the sample code as well as generated presentation file and unfortunately have not been able to completely understand the requirement. Can you please share the working sample project along with source presentation, generated presentation with issues and also the desired output presentation that you want to generate. I will be able to investigate the issue further on provision of requested information.
- Source presentation
- Generated presentation(WhenAutomaticIsFalse.pptx) for which I have applied following coding
- Generated presentation(WhenAutomaticIsTrue.pptx) for which I have applied following coding
chart.Axes.VerticalAxis.IsLogarithmic = true;
I have tried to understand the requirements shared by you and still things are not getting clear. Do you want to dynamically set the chart series data point values?
As far as your following question related to code sample is concerned.
- Generated presentation(WhenAutomaticIsFalse.pptx) for which I have applied following codingchart.Axes.VerticalAxis.IsAutomaticMinValue = false; chart.Axes.VerticalAxis.IsLogarithmic = true;
This is issue in your code. At one end you are setting IsAutomaticMinValue to false and on other end you have commented the line whereby you need to set the MinValue yourself. Actually, IsAutomaticMinValue=false means that you will set the MinValue yourself. So when you comment the MinValue line, the charts get corrupted and you get false presentation. This is not an issue but wrong implementation.
want Min Value to adjust like in our UI chart without providing it from
code side. So I commented the last line in above code which produced a
presentation with error and not showing its slide.
If you set the IsAutomaticMinValue to true, Aspose.Slides charting engine will automatically choose the value for you based on chart series data.
I hope the shared information will be helpful.
chart.Axes.VerticalAxis.IsAutomaticMinValue = true;