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

Categories Axis margin not working with label rotation

4 Answers 82 Views
Charts
This is a migrated thread and some comments may be shown as answers.
fbaptiste
Top achievements
Rank 1
fbaptiste asked on 18 Nov 2014, 10:06 PM
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..


4 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 20 Nov 2014, 10:10 AM
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!
 
0
Craig
Top achievements
Rank 1
answered on 16 Jun 2016, 08:08 PM
We are hitting this issue in our application as well.  Has this been fixed in the latest release yet?
0
Iliana Dyankova
Telerik team
answered on 20 Jun 2016, 10:35 AM
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.
 
0
Craig
Top achievements
Rank 1
answered on 20 Jun 2016, 05:47 PM
Padding does work where margin does not in this case.  Thanks for the tip.
Tags
Charts
Asked by
fbaptiste
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Craig
Top achievements
Rank 1
Share this question
or