Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
I understand, that you can't see the motion chart in your browser when you type
in the local file name.
library(googleVis)
M=gvisMotionChart(Fruits, "Fruit", Year)
print(M, file="~/Desktop/motionchart.html")
Now opening the file in you browser doesn't display the chart.
Unfortunately, this is expected, as the motion chart uses Flash and the Google
API
(http://code.google.com/apis/visualization/documentation/gallery/motionchart.htm
l) states:
Note for Developers: Because of Flash security settings, this (and all
Flash-based visualizations) might not work correctly when accessed from a file
location in the browser (e.g., file:///c:/webhost/myhost/myviz.html) rather
than from a web server URL (e.g., http://www.myhost.com/myviz.html). This is
typically a testing issue only. You can overcome this issue as described on the
Adobe web site.
This is exactly the reason why the googleVis plot command uses the R HTTP help
web server.
So, you have to store the file somewhere a web server can access this, e.g. in
your public dropbox folder:
print(M, file="~/Dropbox/Public/motionchart.html")
You will notice, that you don't have this issue with chart using SVG/VML, e.g.
L=gvisLineChart(OpenClose)
print(L, file="~/Desktop/linechart.html")
Does this help?
Original comment by markus.g...@googlemail.com
on 13 Jun 2011 at 6:43
Original comment by markus.g...@googlemail.com
on 16 Jun 2011 at 11:22
Warnings have been added to the help files.
Thanks for your comments.
Original comment by markus.g...@googlemail.com
on 9 Aug 2011 at 12:05
Original issue reported on code.google.com by
puschm...@gmail.com
on 13 Jun 2011 at 2:27