Closed GoogleCodeExporter closed 9 years ago
Your syntax is incorrect. The following example should work for you.
t4.plot <- gvisGeoChart(t4, locationvar='LatLong', colorvar='partition', sizevar='impression',
options=list(height=500, width=800,
region='US', dataMode='Markers',
colorAxis="{values:[1,2,3,4], colors:[\'#D63A3A\', \'#0026FF\', \'#10C200\',\'#FFFF00\']}"))
The vignette of the googleVis package has more details on setting options and
the following blog entry provides another example for givsGeoChart:
http://lamages.blogspot.co.uk/2012/03/change-in-life-expectancy-animated-with.ht
ml
Original comment by markus.g...@googlemail.com
on 19 Mar 2012 at 7:08
Added additional example to help gvisGeoChart help file and vignette.
Original comment by markus.g...@googlemail.com
on 20 Mar 2012 at 9:53
if using in html use the following. took me a while to figure out, simple
mistake i made.
colorAxis: {
values: [0.2,1.7,10],
colors: ['red','blue','green']}
};
Original comment by rbro...@gmail.com
on 22 Oct 2013 at 5:47
where to put the above code in which function ......color code
Original comment by Inuskmu...@gmail.com
on 27 Jun 2014 at 2:38
i'm using motion chart how to put customize color,please reply,in which
function hav to put the color
Original comment by Inuskmu...@gmail.com
on 27 Jun 2014 at 2:42
Unfortunately colours can't be customise in motion charts.
Original comment by markus.g...@googlemail.com
on 27 Jun 2014 at 5:51
Original issue reported on code.google.com by
estherw...@gmail.com
on 19 Mar 2012 at 6:23Attachments: