Welcome Guest Search | Active Topics |

Alignment of graphs on axis
NTT
#1 Posted : Wednesday, November 30, 2016 9:07:53 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/15/2016(UTC)
Posts: 8

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

I need to create several graphs on top of each other, horizontally aligned such that the y-Axis are at the same position. Unfortuantely, the y-axis labels have different dimensions so even if I specify the same width for the graphs, the axis position differes depending on the length of the axis labels (e.g. one graph with labels 1,2,3,... and one with 0.0001, 0.0002, 0.0003, ...).

Is there a way to somehow circumvent this issue, e.g. to set the width of the graph without the labels, or to get the width of the axis labels?

I hope my description is understandable, if it helps I can send an image.

Cheers
Martin
Dragan
#2 Posted : Wednesday, November 30, 2016 10:10:42 AM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

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

You can set width of the axis.

Code:
{
      location: 'left',
      width: 30
}


We're using it in this example:
http://www.jqchart.com/jquery/chart/FinancialCharts/StockChartWithVolume
Best Regards,
Dragan Matek
jqChart Inc.
NTT
#3 Posted : Thursday, December 01, 2016 6:12:47 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/15/2016(UTC)
Posts: 8

Thanks: 1 times
Was thanked: 0 time(s) in 0 post(s)
Sweet, thanks again for the quick response!
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.606 seconds.