Hello,
On the x axis, I have a range of values from 1/2001 to 1/2010 where I have a value for each month. I need to have ticks every 4 months (MajorTickInterval = 4 is working fine), but I need to have ticks starting from 3/2001, so I will have tick on each 3/xxxx, 7/xxxx, 11/xxxx month. How to achieve this?
Thanks in advance
6 Answers, 1 is accepted
Thank you for writing.
You can define the Minimum, Maximum and MajorStep of the LinearAxis in order to specify the start/end values and the step between them. Additional information for the axis is available in the following help article: http://docs.telerik.com/devtools/winforms/chartview/axes/linear
I hope this information helps. Should you have further questions I would be glad to help.
Regards,
Dess
Progress Telerik
Thank you for writing back.
Minimum and maximum are not relevant for the DateTimeCategoricalAxis. These properties are applicable only for NumericalAxis. That is why if you need to specify the start/end values, feel free to use the LinearAxis. Note that you can format the axis' labels by following the demonstrated approach in this help article: http://docs.telerik.com/devtools/winforms/chartview/customization/custom-labels-text
I hope this information helps. If you have any additional questions, please let me know.
Regards,
Dess
Progress Telerik
I'm not sure that solves my problem. My x axis is already DateTimeCategoricalAxis. User wants to be able to choose frequency of the ticks (so they are shown each n months) and also the date when the first tick will be shown. Please have a look at the charts I have: On the first I am showing you the case when user wants to have ticks every month and since I have data for each month (my DateTimeComponent = DateTimeComponent.Month), the ticks will be exactly on the each data point I have on x axis. Now, user wants the ticks to be shown each 12 months. However, I need to have those ticks shown on each 03. month (03-2009, 03-2010, 03-2011...) instead of first month as is in the image I sent you. Please tell me how to achieve this behavior.
Thank you for writing back.
Firstly, I would like to note that the goal of the Telerik Forum is to provide all registered users with a way to find answers to their questions before officially contacting Telerik. In case you need a faster and precise response, please start a new support ticket as it gets higher priority than Forum posts.
A post in the Forums doesn't guarantee you a response from the Telerik support team although 95% of all posts are eventually addressed. Additionally, a post is not assigned a response time as with the support ticketing system.
As to the question at hand, the DateTimeContinuousAxis also offers the Minimum property which gets or sets the custom minimum of the axis. Specify DateTime.MinValue to clear the property value so that the minimum is calculated automatically.
I hope this information helps.
Regards,
Dess
Progress Telerik