| Issue 14: | numberFormat option unavailable for gvisTable | |
| 2 people starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? age=18:29 height=c(72342346.1,72342347,78234234.1,71238.2,71238.8,72349.7,12379.9,223481.1,81231.2,82341.8,23482.8,82343.5) test <- data.frame(age=age,height=height) t1 <- gvisTable(test, options=list(width=800, height=500, numberFormats=',')) cat(t1$html$chart, file="table.html") I couldn't find documentations on R implementation of this option: https://developers.google.com/chart/interactive/docs/reference#numberformatter What is the expected output? What do you see instead? I expected to see commas. What version of the product are you using? On what operating system? platform x86_64-apple-darwin9.8.0 arch x86_64 os darwin9.8.0 system x86_64, darwin9.8.0 status major 2 minor 13.0 year 2011 month 04 day 13 svn rev 55427 language R version.string R version 2.13.0 (2011-04-13) googleVis version installed is 0.2.14 Thank you
Aug 21, 2013
I needed this function for a project of mine, added it into a git repo located here : https://github.com/jburos/GoogleVis In case it's useful to anyone ..
Aug 21, 2013
Thanks for the code. I have included your ideas and code into our version as well. See here: https://code.google.com/p/google-motion-charts-with-r/source/detail?r=372
Status:
Fixed
|
The NumberFormat and other additional JavaScript functions are currently not supported in googleVis. We are looking for volunteers to help. The best suggestion from my side would be the following: test$height <- format(test$height, big.mark=",") test$height <- gsub(" ", " ", test$height) t1 <- gvisTable(test, options=list(width=800, height=500)) plot(t1)Labels: -Type-Defect -Priority-Medium Type-Enhancement Priority-Low