So this wouldn't be trivial by any means, but it can certainly be done, although it's debatable how 'live' it would be. There would probably be a delay of at least a few seconds between what your computer is actually doing and what the graph is showing, of course depending on how often you update the spreadsheet.
It might be easier to just write a server to do this, as you originally intended, but it could be pretty simple. You'd first have to figure out how to programmatically get the cpu and memory stats in the language of your choice, and then you would have a server that returns them when a request is sent to it. This would reduce the amount of indirection and minimize the delay, showing you actually live information. You could get around without the datasource library, though. But you would still have to implement the same interface. Here the a documentation page for how to implement a data source yourself <https://developers.google.com/chart/interactive/docs/dev/implementing_data_source?hl=en> . On Thu, Nov 12, 2015 at 2:14 PM Ty Flowers <[email protected]> wrote: > Hi Sergey, > > Thanks for the response. I was racking my brain, seriously, trying to find > that .jar. LOL! With regard to creating a google spreadsheet and writing > fetches to the data with java, can this be done with live data? For > example, I want to create a real-time graphical output for top, using > guages to display stuff like %mem and %cpu used. Can I redirect the "top" > output from my system to my google spreadsheet then use java to fetch the > data? I'll take a look at the link you gave me and see what I a can whip > up... I haven't coded anything in decades so this task I've been given is > becoming quite the adventure. Ha! Thanks again for your help! > > Respectfully, > Ty > > > On Wednesday, November 11, 2015 at 3:10:04 PM UTC-8, Ty Flowers wrote: >> >> Hi All, >> >> I am kind of a noob in working with Google Charts, so please bear with >> me. :) I am trying to create a performance representation using Google >> Charts with live external data populating a .csv file. In doing so, I have >> created an Apache Webserver on CentOS 7 and am following this reference >> from the Google Developers page: >> >> https://developers.google.com/chart/interactive/docs/dev/dsl_get_started >> >> I was successful in configuring the Webserver and have created the >> associating directories; as well as, copied the lib's per the above >> reference. As I follow the process, I keep running into a road block when I >> come to item #9, "~ copy visualization-datasource-1.0.2.jar and >> visualization-datasource-examples.jar". The reference states that these >> files should be included in the data source download, which I cloned from >> git, https://github.com/google/google-visualization-java.git. I looked >> through all of the directories in this folder and did not find the >> visualization-datasource-1.0.2.jar and >> visualization-datasource-examples.jar files. I was able to find the >> "visualization-datasource-1.0.2.jar from an external source and placed it >> within the /myWebApp/WEB-INF/lib directory. I tried to bring up the the >> test browser page pointing to the "getting_started.html" page placed in >> "/myWebApp" directory and less the visualization-datasource-examples.jar >> file, and I get a "requested resource not available"..? >> >> So all of that said, I have a couple question in support of seeking >> assistance; >> >> 1. Is there an updated library that I need to navigate to that has the >> visualization-datasouces and visualization-datasource-examples jar files? >> 2. Is there an easier way to create a webapp to host my live data to >> present to google charts? >> >> Any assistance is greatly appreciated. Thank you! >> >> Respectfully, >> Ty Flowers >> >> -- > 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. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-visualization-api/9d61d969-9b9c-462e-8027-e19f41864a0b%40googlegroups.com > <https://groups.google.com/d/msgid/google-visualization-api/9d61d969-9b9c-462e-8027-e19f41864a0b%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- *[image: unnamed.gif] * *Sergey Grabkovsky* | SWE | [email protected] -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/CAEwwup5pPNxBLcmNUJq2gJZzeFMSUfYymdQseknFUOpaPoBy0Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
