srk0143 / dwpe

Automatically exported from code.google.com/p/dwpe
MIT License
0 stars 0 forks source link

Ability to choose different line styles #22

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I would like to have an option for different line styles in order to make the 
chart better accessible 
for color-blind people.

Kind regards,
Bart

Original issue reported on code.google.com by b.vandeb...@gmail.com on 26 Apr 2010 at 10:52

GoogleCodeExporter commented 9 years ago
Thanks Bart,
We agree this would be a great feature to add. 

We've worked out a patch that adds support for specifying image urls among the 
other colors in the "colors" array, 
so you could just specify an image instead of a color and the line or pie area 
will fill with that tiled image.

For some reason, it only seems to work with one image so far. It's tricky 
because you need to make sure the image 
has loaded before you can create a canvas pattern from it. I got it close 
anyway. 

Also, it looks like Excanvas doesn't support patterns so we'd need a different 
approach to support IE.
Anyway, if you'd like to take a look, I've attached the patch and an image 
(drop it in the charting/images folder).
-Scott

Original comment by scottj...@gmail.com on 27 Apr 2010 at 10:08

Attachments: