Welcome Guest Search | Active Topics |

Y axis labels don't rotate
chuck
#1 Posted : Tuesday, November 27, 2012 3:17:20 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/19/2012(UTC)
Posts: 7

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
I used the axis title options as described in the Axis Titles sample, http://www.jqchart.com/d...userguide/default.aspx#!AxisTitles, and the label is printing at the top of the Y axis in normal orientation -- not mid-height of the Y axis and rotated 90 counter-clockwise like you would expect.

Related, I can not see the actual source of that page, in both IE 9 and Chrome clicking on the Source accordian shows empty an div. I've already noticed that sometimes the source of an example differs from what it says in the text of a page...

-= chuck
Ivan
#2 Posted : Wednesday, November 28, 2012 7:55:14 AM(UTC)
Rank: Administration

Groups: Administrators, Moderator, Registered
Joined: 11/5/2012(UTC)
Posts: 131

Thanks: 0 times
Was thanked: 15 time(s) in 15 post(s)
Hi,

The source of the example is just before the chart picture.

The axis titles don't support rotation. If you want to rotate the axis labels, you can check this sample:

http://www.jqchart.com/samples/ChartAxes/AxisLabelsRotation
Best,
Ivan Petrov
jqChart Inc.
chuck
#3 Posted : Wednesday, November 28, 2012 9:50:11 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/19/2012(UTC)
Posts: 7

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Hi,

When you say axis titles don't support rotation, you mean that your library automatically is supposed to be rotating the Y axis (or 'left' axis)? This is exactly my axis property, the 'left' axis was taken directly from the example mentioned above:

axes: [{
type: 'category',
location: 'bottom',
categories: $.map(dailyData, function(val,i) {return val.date;}),
labels: {
font: '12px sans-serif bold',
}
},{
type: 'linear',
location: 'left',
title: { text: 'Axis Title Y', fillStyle: 'green' }
}]

My title 'Axis Title Y' shows up in normal left-to-right orientation, above the Y axis. Could it be something your library does if there isn't room for the Y axis?

-= chuck
Ivan
#4 Posted : Wednesday, November 28, 2012 10:03:01 AM(UTC)
Rank: Administration

Groups: Administrators, Moderator, Registered
Joined: 11/5/2012(UTC)
Posts: 131

Thanks: 0 times
Was thanked: 15 time(s) in 15 post(s)
Hi,

Is it possible to send us your exact code, so we can investigate it?
Best,
Ivan Petrov
jqChart Inc.
chuck
#5 Posted : Wednesday, November 28, 2012 10:47:37 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/19/2012(UTC)
Posts: 7

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Sent to the support email address.

Could it be because I'm using a column chart?

-= chuck

PS
Nope that isn't it, just copied that axis property to one of your column chart samples and rotated Y axis title showed up as expected.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

FlatEarth Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.100 seconds.