Closed (fixed)
Project:
Open Flash Chart API
Version:
5.x-2.6
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Jul 2008 at 22:39 UTC
Updated:
3 Nov 2009 at 17:21 UTC
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
Comment #1
redndahead commentedaww crap I thought html encoding would work. Just to verify you are using %2C right?
Comment #2
wim leersYes I am :)
Comment #3
okaalto commentedIt 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.
Comment #4
wim leers