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

Fixed Width for Value Axis Labels

3 Answers 432 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Thorne
Top achievements
Rank 1
Thorne asked on 15 Aug 2012, 07:25 PM
I need to be able to set a fixed width for the labels of the Value Axis.  I have a problem caused by the re-scaling of the plotting area based on the number of digits in the valueAxis labels.  I need some way to keep the actual chart area (compared to the value axis) to stay the same width, so that I can consistently line up with other elements on my page.
 
  I can't seem to find any documentation and 

valueAxis: { 
labels:{ 
width: 100
}, 
width: 100, 
}, 

does not work.  Is this possible?  PlotArea and ChartArea width also seems to have no effect. 

-Thorne

3 Answers, 1 is accepted

Sort by
0
Thorne
Top achievements
Rank 1
answered on 22 Aug 2012, 04:19 PM
Hi, it's been a week.    Can someone tell me if it's possible to set the width for the value axis? 
0
j
Top achievements
Rank 1
answered on 10 Feb 2014, 05:28 PM
Any solution for this?
0
Iliana Dyankova
Telerik team
answered on 11 Feb 2014, 09:21 AM
Hi guys,

I am afraid setting width to the axes labels is not supported by Kendo UI Chart. As a possible workaround I can suggest hiding the default chart labels and using a table with two columns - in the first one define the values, in the second one define the actual chart (jsBin example).

Regards,
Iliana Nikolova
Telerik

Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

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