How to apply multiple colors to the text in annotation of any chart

20 views
Skip to first unread message

Sagar Varma

unread,
Oct 24, 2018, 8:58:46 AM10/24/18
to Google Visualization API
Hi,

I have created a column chart for which i have added two annotations in which, one displays the actual data value and the other one displays the significance along with an upArrow/downArrow. PFA attached screenshot for reference. Currently what i have achieved is apply red or green to whole second annotation keeping first annotation in black color by modifying the style in ready event some how. but In second annotation, i want the significance value to be in black color and the arrow marks in either red or green. i tried using <tspan> to append arrow mark separately and apply color to it. But that did not work. Could someone please help me in resolving this issue.

Please let me know if any concerns.

Thanks ,
Sagar.
Google_Column_Chart.PNG
Reply all
Reply to author
Forward
0 new messages