I have successfully used Google charts to create a coloured number
value from inside Salesforce.com using the code:
IF( Curr_Q_RAG_Val__c = 1, IMAGE("http://chart.apis.google.com/chart?
chst=d_text_outline&chld=FD0000|14|h|000000|
b|"+TEXT(Current_Q_Actual__c ), "RAG Value - Amber"),
IF( Curr_Q_RAG_Val__c = 2,IMAGE("http://chart.apis.google.com/chart?
chst=d_text_outline&chld=EBC20D|14|h|000000|
b|"+TEXT(Current_Q_Actual__c ), "RAG Value - Amber"),
IF( Curr_Q_RAG_Val__c = 3,IMAGE("http://chart.apis.google.com/chart?
chst=d_text_outline&chld=3CCA19|14|h|000000|
b|"+TEXT(Current_Q_Actual__c ), "RAG Value - Green"),
IMAGE("http://chart.apis.google.com/chart?
chst=d_text_outline&chld=F88CD8|14|h|000000|
b|"+TEXT(Current_Q_Actual__c ), "RAG Value - SUPER RED"))))
This gives me an appropriately coloured number value I can display on
screen.
What I really want to be able to do is just set the background colour
for the number, and leave the text black.
Does anyone know if there's a method I can call to do this?
Many thanks in advance.
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.