youcef92 / flotr

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

Axis Labels ignoring "titleAngle" attribute #148

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Create a new graph and try to reproduce the "Advanced Titles Example". The Y 
axis label (the one I'm concerned about) does not respond to any value provided 
for the "titleAngle" attribute. 

What version of the product are you using? On what operating system?
Using the latest trunk contents.

Original issue reported on code.google.com by blackou...@gmail.com on 25 Aug 2010 at 6:40

GoogleCodeExporter commented 8 years ago
Did you remember to set the HtmlText option to false? HTML text cannot be 
rotated

Original comment by spoon.re...@gmail.com on 3 Sep 2010 at 11:35

GoogleCodeExporter commented 8 years ago
I have the same problem in the latest version from the trunk. I'm making a bar 
graph.

Line 672: this.textEnabled = !!this.ctx.drawText; 
Evaluates to false, therefore canvas text is not enabled.

Original comment by nicholas...@gmail.com on 8 Sep 2010 at 5:44

GoogleCodeExporter commented 8 years ago
Hmm... it appears that Flotr only enables canvas text if the canvastext library 
is included.

I think this is a bug. Flotr should also enable canvas text if the browser 
supports native canvas text (fillText, etc.), even if the canvastext library is 
not included. Flotr already includes code to use the browser native canvas text 
functionality (see Flotr.drawText function), so it seems that it was intended 
to support the browser's native canvas text independently.

Original comment by spoon.re...@gmail.com on 8 Sep 2010 at 9:27

GoogleCodeExporter commented 8 years ago
Also, HTML can be rotated these days by using CSS translations. Though, most if 
not all browsers that don't support canvas, don't support css translations. 
Still, if the user has specifically chosen HTML labels, perhaps this would be 
one way to keep the look the same without using canvas.

Original comment by nicholas...@gmail.com on 8 Sep 2010 at 10:33