When I save the code for a Motion Chart into an html file and try to open it, I get the footer and the “initializing” progress bar blinks for a split second, but nothing else shows up.
so
M1 <- gvisMotionChart(Fruits, idvar="Fruit", timevar="Year")
plot(M1)
works great, but
print(M1, file='d:/delete/fruit.html')
and then opening the resulting file in a browser comes up blank (except for the footer). Is there a way I can save this visualization and circulate it around?
As I understand it, the file has to be displayed via a web server to show the chart
http://code.google.com/apis/chart/interactive/docs/gallery/motionchart.html#Notes
The plot command in R uses the internal R http help server to overcome this limitation.
Here’s how I overcame it:
Now open your googleVis html file and it should display successfully. In fact, any googleVis file you open from within the folder you selected will also display as you would expect.