Setting the value of start tick manually

7 posts, 0 answers
  1. Borislav
    Borislav avatar
    17 posts
    Member since:
    Nov 2016

    Posted 02 Aug Link to this post

    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

  2. Dess
    Admin
    Dess avatar
    2107 posts

    Posted 02 Aug Link to this post

    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.
  3. Borislav
    Borislav avatar
    17 posts
    Member since:
    Nov 2016

    Posted 02 Aug in reply to Dess Link to this post

    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?
  4. Dess
    Admin
    Dess avatar
    2107 posts

    Posted 03 Aug Link to this post

    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.
  5. Borislav
    Borislav avatar
    17 posts
    Member since:
    Nov 2016

    Posted 03 Aug in reply to Dess Link to this post

    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.

  6. Borislav
    Borislav avatar
    17 posts
    Member since:
    Nov 2016

    Posted 04 Aug Link to this post

    I would appreciate if somebody answered soon, because I need to finish my project.
  7. Dess
    Admin
    Dess avatar
    2107 posts

    Posted 07 Aug Link to this post

    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.
Back to Top