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.

Comments

redndahead’s picture

aww crap I thought html encoding would work. Just to verify you are using %2C right?

wim leers’s picture

Yes I am :)

okaalto’s picture

Title: Comma in label » Comma in label or link

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.

wim leers’s picture

Status: Active » Closed (fixed)