Categories Axis margin not working with label rotation

5 posts, 0 answers
  1. fbaptiste
    fbaptiste avatar
    19 posts
    Member since:
    Apr 2007

    Posted 18 Nov 2014 Link to this post

    I have the following simplified scenario of a column chart set with both margin and rotation for the category axis labels: 

    $("#chart").kendoChart({
      categoryAxis: [{
        labels: {
          margin: {
            right: 150,
            top: -75
          },
          rotation: 270
        },
        categories: ["2011", "2012", "2013"]
      }],
      series: [{
        data: [1, 2, 3]
      }]
    });


    this is working as expected on earlier kendo version 2014 Q1 SP2 but not on the latest. in which the right margin does not seem to be working as expected.

    a demo for this can be seen here: http://dojo.telerik.com/OmEti.

    i guess this is a bug but i'm not sure if there might be another way to achieve the same result..


  2. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2595 posts

    Posted 20 Nov 2014 Link to this post

    Hi Fred,

    Thank you for pointed our attention to this issue - I confirm this is a bug and forwarded it to the developers for further investigation. As a small sign of gratitude I updated your points.

    Regards,
    Iliana Nikolova
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Craig
    Craig avatar
    4 posts
    Member since:
    Sep 2015

    Posted 16 Jun Link to this post

    We are hitting this issue in our application as well.  Has this been fixed in the latest release yet?
  5. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2595 posts

    Posted 20 Jun Link to this post

    Hi Craig,

    To move the labels you could use top padding. Take a look at this example.

    Regards,
    Iliana Nikolova
    Telerik
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
  6. Craig
    Craig avatar
    4 posts
    Member since:
    Sep 2015

    Posted 20 Jun in reply to Iliana Nikolova Link to this post

    Padding does work where margin does not in this case.  Thanks for the tip.
Back to Top
Kendo UI is VS 2017 Ready