Chart min distance between ticks.

6 posts, 0 answers
  1. Marcin
    Marcin avatar
    191 posts
    Member since:
    Jan 2011

    Posted 05 Feb 2013 Link to this post

    I have chart that all values are integers. It display labels well when value is quite big. e.g. it display 2,4,6,8,10. So it calculates vaues nicely. But with small values on report e.g. 1, 2, chart display also values like 0.5, 1.5, 2.5
    I would like to ask how to set chart to set minimal possible gap would be e.g 1.
  2. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2622 posts

    Posted 06 Feb 2013 Link to this post

    Hello Marcin,

    I am afraid there is no configuration option for setting "minimal possible gap" between labels on the valueAxis, however you can use the step / skip options and render only some of the labels. In order to assist you best and provide concrete recommendations I would like to ask you to elaborate a bit more on the exact functionality you are trying to implement. 
      
    Kind regards,
    Iliana Nikolova
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Marcin
    Marcin avatar
    191 posts
    Member since:
    Jan 2011

    Posted 06 Feb 2013 Link to this post

    Ok, thank you for answer, I will calcuate it dynamically then.

    Could you please give me an example in js how chart is doing its calcuation to decide its minor/major unit?

  4. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2622 posts

    Posted 08 Feb 2013 Link to this post

    Hello Marcin,

    The calculation of the MajorUnit is done by the utoMajorUnit function in kendo.dataviz.js file - please check such function and let me know if you have any further questions.
     
    Regards,
    Iliana Nikolova
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  5. Thomas
    Thomas avatar
    1 posts
    Member since:
    Jul 2013

    Posted 19 Jul 2013 Link to this post

    I have a question regarding ticks as well.  According to Iliana Nikolova  posts, we cannot define the minor and major ticks values as they are calculated by the system.  Is this correct?
  6. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2622 posts

    Posted 22 Jul 2013 Link to this post

    Hello Thomas,

    I am not quite sure if I understand your question correctly - what do you mean with "minor and major ticks values"? Ticks are actually the short vertical lines over the axes and they have color, size, visible and width options (link). Could you please provide more detailed information about the exact features you are looking for? Thank you in advance for your cooperation. 

    Regards,
    Iliana Nikolova
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top