youcef92 / flotr

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

When HtmlText=false legends fail to render. #159

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Set HtmlText=false. 
2. Enable showing of legends
3. Give your series a label

What is the expected output? What do you see instead?
The legends should render.
Instead, you get a Javascript error.

What version of the product are you using? On what operating system?
r171. Windows, Firefox (and Chrome and IE).
The error also exists in the latest trunk.

Please provide any additional information below.
The problem lies in that: Flotr.measureText(ctx, label, style) returns the 
width, not an object with a width property.

Attached patch will fix the issue. (Tested in Firefox 3.6.13 & Chrome 
8.0.552.215)

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

Attachments:

GoogleCodeExporter commented 8 years ago
This issue was caused by my own fault. I had a newer version of flotr.js 
without newer versions of the lib files.

Please close this as Not an Issue or something similar.
Sorry for the trouble.

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

GoogleCodeExporter commented 8 years ago
thanks for letting us know

Original comment by peter....@solide-ict.nl on 2 Feb 2011 at 1:11

GoogleCodeExporter commented 8 years ago
Peter, does this mean this issue is fixed?

Original comment by justin.f...@gmail.com on 2 Feb 2011 at 4:57