youcef92 / flotr

Automatically exported from code.google.com/p/flotr
0 stars 0 forks source link

HtmlText=False, Title Alignment not centered on yAxis #160

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Set HtmlText=False
2. yaxis: { title: "something sorta long" }
3.

What is the expected output? What do you see instead?
I want the title text centered about the vertical area.
Notice that the title text looks like it is aligned such that the end of the 
text is in the center vertically.

What version of the product are you using? On what operating system?
r171. Windows, Firefox 3.6, Chrome 8, IE8

Please provide any additional information below.

The attached patch adds a "titleAlign" option to the axis that will be used if 
specified and otherwise it defaults to what was previously hard-coded in the 
code.
When I set titleAlign to 'center', I get what I want.

Original issue reported on code.google.com by justin.f...@gmail.com on 14 Dec 2010 at 5:01

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for this patch, that's the kind of help we need ;)
I'll apply it ASAP.

Original comment by fabien.menager on 14 Dec 2010 at 7:11

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r174.

Original comment by fabien.menager on 14 Dec 2010 at 7:33

GoogleCodeExporter commented 8 years ago
Fabien,

I noticed that on IE, the title alignment is out of whack. This happens whether 
or not I have titleAlign: 'center'.

I am going to create a separate ticket for this because I believe this has to 
do with CanvasText and it mis-aligning things in IE (which is apparently the 
only browser that uses it).

Original comment by justin.f...@gmail.com on 14 Dec 2010 at 7:38

GoogleCodeExporter commented 8 years ago
Nevermind that last comment. I wasn't using the latest versions of excanvas, 
canvastext, etc. I updated to r171 of all of these and the alignment issues I 
was having are resolved. And the titleAlign works fine now as well.

Original comment by justin.f...@gmail.com on 14 Dec 2010 at 8:11