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

Overlapping categoryAxis Labels

1 Answer 214 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Cyndie
Top achievements
Rank 1
Cyndie asked on 17 Feb 2012, 07:38 PM
I have a line chart showing one weeks worth of hourly data (168 values).  The categoryAxis labels overlap even when they are rotated 90 degrees.  How can I show the label for only every 6th or 12th value to prevent this? 

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 20 Feb 2012, 09:05 AM
Hi,

We've introduced a new label step property to allow this behavior. The property will be available available in the Q1 beta release that is scheduled for the end of February.
categoryAxis: {
    labels: {
        step: 6
    }
}

Another option would be to emulate a date axis using a scatter chart by representing the dates as milliseconds. I've prepared a small demo here - http://jsbin.com/ihegav/edit#html,live 

I hope this helps.

All the best,
Tsvetomir Tsonev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Charts
Asked by
Cyndie
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or