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

May I display some "lable" in x-axis

2 Answers 78 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Tanawatra
Top achievements
Rank 1
Tanawatra asked on 22 Mar 2012, 12:51 PM
Hi, 
 I have too much data to display all label (100 Records) so I need to show some label, please tell me how to.

   such as

data [
{
d1 = "00"
value = 90
}, {
...
}, {
dn = "99"
value = 23
}
}

show only dx%5 == 0 or something like this

Thank you, ^ ^
Sorry for my english

2 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 23 Mar 2012, 01:19 PM
Hi Tanawatra,

You could set up a Labels step in order to prevent overlaping of the labels and skip some of them.  
For example: 
categoryAxis: {
   categories: [a, b, c, d, e, f,........],
      labels: {
        step: 5}
}

I hope this helps.
 

All the best,
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
Tanawatra
Top achievements
Rank 1
answered on 26 Mar 2012, 07:07 AM
Hi, Iliana Nikolova

   It's doesn't work for me this is my code

categoryAxis: {
    categories: ["00:00", "01:00", "02:00", "03:00", "04:00", "05:00", "06:00", "07:00", "08:00", "09:00", "10:00", "11:00", "12:00", "13:00", "14:00", "15:00", "16:00", "17:00"],
    line: {
        width: 1
    },
    labels: {
        rotation: -45,
        step: 2
    }
}

And thank you for answer. ^_^
Tags
Charts
Asked by
Tanawatra
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Tanawatra
Top achievements
Rank 1
Share this question
or