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
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

redndahead - July 12, 2008 - 22:54

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

#2

Wim Leers - July 12, 2008 - 23:27

Yes I am :)

#3

okaalto - March 13, 2009 - 08:17
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.

#4

Wim Leers - November 3, 2009 - 17:21
Status:active» closed
 
 

Drupal is a registered trademark of Dries Buytaert.