youcef92 / flotr

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

Graph background image #131

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Currently it's not possible to add a decorative image to the background of the 
graph.

Setting a background image through CSS on the graph's containing DIV or the 
graph's CANVAS element doesn't work because the axes labels are included in the 
canvas, which means the image would be misaligned when the labels shift in size 
(when zooming in or just when the labels are auto-generated).

Here's a patch to add background image support.  Unfortunately, because of the 
asynchronous nature of the Image class, I wasn't able to put the image loading 
after the background color is painted (at least not without completely 
restructuring the code), so a background image plus color is not possible right 
now.

Original issue reported on code.google.com by peter....@solide-ict.nl on 15 Jun 2010 at 1:56

Attachments:

GoogleCodeExporter commented 8 years ago
Patch applied, thank you !

Original comment by fabien.menager on 21 Jun 2010 at 9:47

GoogleCodeExporter commented 8 years ago

Original comment by fabien.menager on 16 Jul 2010 at 5:57