Hi All,
In Bar Chart is it possible to display image along with label for vertical
axis?
Please find attached image displaying vertical axis with red/green/yellow
image along with text.
var chart = new google.visualization.BarChart(element[0]);
var value.data=[['Year','Percent', 'Sales', 'Expenses','Cost'],
['2004', 40,1000, 400,200],
['2005', 44.44, 1170, 460,100],
['2006', 50, 660, 1120,500],
['2007', 30, 1030, 540,500]];
var data = google.visualization.arrayToDataTable(value.data);
If pattern formatter used then html content are rendered as string.
var formatter = new google.visualization.PatternFormat('<img
src=".\red.jpg" />{0} {1}%');
formatter.format(data, [0, 1])
chart.draw(view, options);
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.