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

Can I Display Every N-th Category Label on this Chart?

2 Answers 84 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Ted
Top achievements
Rank 1
Ted asked on 10 Aug 2016, 06:48 PM

Link to chart: Example

I have tried using the "baseUnit", "maxDateGroups", and "autoBaseUnitSteps" with no success.

I also tried applying this to the category axis with no success:

            valueAxis: {
                min: new Date("2016/02/01").getTime(),
                max: new Date("2016/05/16").getTime(),
                majorUnit: 60 * 60 * 1000 * 24 * 7 * 2, // 14 days in milliseconds
                labels: {
                  template: "#= kendo.toString(new Date(value), 'MM-dd-yy') #"
                }
             },

 

Thank you for you help,

Ted

2 Answers, 1 is accepted

Sort by
1
Accepted
Iliana Dyankova
Telerik team
answered on 12 Aug 2016, 06:46 AM
Hi Ted,

There is a categoryAxis.labels.step option which can be used for this scenario. For your convenience here is the updated dojo.

Regards,
Iliana Nikolova
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Ted
Top achievements
Rank 1
answered on 15 Aug 2016, 12:52 PM

Hi Iliana,

Thank you very much for your help.

Sincerely,

Ted

Tags
Charts
Asked by
Ted
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Ted
Top achievements
Rank 1
Share this question
or