We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Setting min/max on DateTime category axis

Hi,

I am exporting to Excel a chart which has DateTime category axis. I would like to set the minimum and maximum values on the category axis. When I try to set it using

chart.PrimaryCategoryAxis.MinimumValue =

it will only let me specify a double value, not a DateTime. How can I set the min/max values on my axis?


2 Replies

FS Farman Samee November 5, 2010 08:30 PM UTC

Hi,

Another related issue is that, when I try to make my category axis values sensible by using:

chart.PrimaryCategoryAxis.IsAutoMajor = true;

I get a crash (exception).

I tried to set this because sometimes I find that when I open my excel file the major unit scale has been set to days instead of auto.

Is there a workaround/fix?



PR Poornima R Syncfusion Team November 9, 2010 11:47 AM UTC

Hi Samee,

Thank you for your interest in Syncfusion products.

We were able to reproduce the mentioned issue. We suspect this could be a defect. We have forwarded this issue to our development team for further analysis.

Could you please report this issue through Direct Trac Developer Support System
https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents because you can take the advantage of the expertise of a dedicated support engineer and a guaranteed response time and we hope you will take advantage of this system as well. If you have already reported, please ignore this.

Please let me know if you have any questions.

Regards,
Poornima




Loader.
Live Chat Icon For mobile
Up arrow icon