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

3 posts, 1 answers
  1. Ted
    Ted avatar
    11 posts
    Member since:
    Jul 2016

    Posted 10 Aug Link to this post

    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. Answer
    Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2594 posts

    Posted 12 Aug Link to this post

    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.
     
  3. Kendo UI is VS 2017 Ready
  4. Ted
    Ted avatar
    11 posts
    Member since:
    Jul 2016

    Posted 15 Aug in reply to Iliana Nikolova Link to this post

    Hi Iliana,

    Thank you very much for your help.

    Sincerely,

    Ted

Back to Top