This is a migrated thread and some comments may be shown as answers.

Setting the value of start tick manually

6 Answers 114 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Borislav
Top achievements
Rank 1
Borislav asked on 02 Aug 2017, 10:35 AM

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

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 02 Aug 2017, 11:57 AM
Hello Borislav, 

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
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Borislav
Top achievements
Rank 1
answered on 02 Aug 2017, 04:36 PM
Dess, my x axis is DateTimeCategoricalAxis and it doesn't have Minimum/Maximum/MajorSter properties. (For the record, I also cannot use DateTimeContinuousAxis on the x axis if you wanted to suggest it) Is there any way to set where on the x axis will be the first tick?
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 03 Aug 2017, 10:32 AM
Hello Borislav, 

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
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Borislav
Top achievements
Rank 1
answered on 03 Aug 2017, 11:17 AM

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.

0
Borislav
Top achievements
Rank 1
answered on 04 Aug 2017, 10:33 AM
I would appreciate if somebody answered soon, because I need to finish my project.
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 07 Aug 2017, 07:35 AM
Hello Borislav, 

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
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
ChartView
Asked by
Borislav
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Borislav
Top achievements
Rank 1
Share this question
or