Comma in label or link
Wim Leers - July 12, 2008 - 22:39
| Project: | Open Flash Chart API |
| Version: | 5.x-2.6 |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
How can you get a comma in a label? Even when written as a HTML entity, Open Flash Chart interprets it as a separator! At least in the $labels parameter for pie_values().
Super simple question, I almost feel stupid for asking, but I can't get it to work.

#1
aww crap I thought html encoding would work. Just to verify you are using %2C right?
#2
Yes I am :)
#3
It seems that OFC 1 bar charts accept commas in links (and labels?), if commas are encoded to #comma#
Unfortunately, this does not apply to pie charts. I came up with this when trying to set links to charts pointing to taxonomy terms,
e.g. taxonomy/term/1,2,3
When setting the links I would use: taxonomy/term/1#comma#2#comma#3
However, since this does not work with pie charts, I ended up with using own encoding of commas in links combined with argument handling code in taxonomy term view to decode back to commas.
#4