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

Chart min distance between ticks.

5 Answers 157 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Marcin
Top achievements
Rank 1
Veteran
Marcin asked on 05 Feb 2013, 01:21 PM
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.

5 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 06 Feb 2013, 01:11 PM
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!
0
Marcin
Top achievements
Rank 1
Veteran
answered on 06 Feb 2013, 01:25 PM
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?

0
Iliana Dyankova
Telerik team
answered on 08 Feb 2013, 01:44 PM
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!
0
Thomas
Top achievements
Rank 1
answered on 19 Jul 2013, 05:42 PM
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?
0
Iliana Dyankova
Telerik team
answered on 22 Jul 2013, 01:41 PM
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!
Tags
Charts
Asked by
Marcin
Top achievements
Rank 1
Veteran
Answers by
Iliana Dyankova
Telerik team
Marcin
Top achievements
Rank 1
Veteran
Thomas
Top achievements
Rank 1
Share this question
or