I successfully created a geochart using min and max values to incorporate
red, yellow, blue, and green country color codes; however the PM wants to
implement exact Google hex values. For example:
*Blue*
- Pantone: C 300 U 3005
- CMYK C: 100 44 0 0
- CMYK U: 100 34 0 2
- Hex: 3369E8
- RGB: 51 105 232
Is this a possibility?
A snippet of my original script is as follows:
<script type='text/javascript'
src='https:www.google.com/jsapi'></script>
<script type='text/javascript'>
google.load('visualization', '1', {packages:['corechart']});
google.setOnLoadCallback(drawRegionsMap);
function drawRegionsMap() {
var data = google.visualization.arrayToDataTable([
['Code','Country','Value', {role:'tooltip', p: {html: true}}],
['AR','Argentina', 3,'Alexis Craig'],
['AU','Austrailia',4,'Kit Theeraprawat'],
['AT','Austria', 1,'Kit Theeraprawat'],
]);
var options = {
colorAxis: {
colors: ['green', 'blue', 'yellow', 'red'],
minValue: 1,
maxValue: 4
},
legend: 'none'
};
var chart = new
google.visualization.GeoChart(document.getElementById('chart_div'));
chart.draw(data, options);
};
</script>
--
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/groups/opt_out.