It is currently Sat Sep 20, 2014 3:59 pm Advanced search

Title overlaps legend

Technical support, bug reports and more.

Title overlaps legend

Postby kzoon » Mon Feb 20, 2012 2:57 pm

When I set legend to center top, the title and legend overlap. Seehttp://jsfiddle.net/kzoon/97jey/1/
I can overcome this problem by setting the y value on the legend, but I think that is just a workaround because y depends on lots of things.
The legend should be allotted room between the title and the plotArea, where legend.marging determines the space between legend and plotArea and Title.margin determines the space between Title and Legend.

Should this issue be regarded as a bug?

In the meantime this workaround http://jsfiddle.net/kzoon/sPJcu/6/works rather well as long as Title/Sublitle don't have <br/> in them
kzoon
 
Posts: 146
Joined: Wed Aug 10, 2011 10:22 am

Re: Title overlaps legend

Postby hfrntt » Thu Feb 23, 2012 4:17 pm

I'm not sure if it's a bug. What if someone wants the legend above the title?
Slawek Kolodziej
Highcharts support team
hfrntt
 
Posts: 6394
Joined: Mon Aug 30, 2010 10:41 am

Re: Title overlaps legend

Postby kzoon » Fri Feb 24, 2012 1:53 pm

I can live with legend above title AND with legend below title. Just not with legend and title overlapping each other. I still think that should not happen.
kzoon
 
Posts: 146
Joined: Wed Aug 10, 2011 10:22 am

Re: Title overlaps legend

Postby hfrntt » Mon Feb 27, 2012 8:45 pm

Well I'm going to send this topic forward, someone should reply you soon.
Slawek Kolodziej
Highcharts support team
hfrntt
 
Posts: 6394
Joined: Mon Aug 30, 2010 10:41 am

Re: Title overlaps legend

Postby torstein.honsi » Tue Feb 28, 2012 2:45 pm

It's not a bug - shortcoming perhaps, but this behaviour is by design. The problem is that Highcharts doesn't know whether to make room for the legend below or above the title, because both the legend and the title are positioned absolutely using align, verticalAlign, x and y properties. There is no logic saying "first render the title, then see how much space we have got left for the legend, then render the plot area below it".
Torstein Hønsi
CTO, Founder
Highsoft Solutions
User avatar
torstein.honsi
Site Admin
 
Posts: 9198
Joined: Thu Nov 09, 2006 1:22 pm
Location: Vik i Sogn, Norway


Return to Highcharts Usage

Who is online

Users browsing this forum: Bing [Bot] and 3 guests