I am developing a web app for a client and I want to use the Google API's to draw some nice graphs.
The client has some sensitive data and has raised some concerns about security, specifically, they do not want their data "going to Google".
There are 2 options or API's for generating charts. The Chart API, where you build a URL and submit to Google so that it can generate a graph image - obviously the client data IS going to Google so this option is a no no.
The second option is to use the Visualisation API. As far as I am aware, the code to generate the visualisation is downloaded from Google, but the data used to build the output never leaves the browser, and therefore is "safe" to use with sensitive data. Is this an accurate description?
I have looked through the Google API documentation to try and answer my question but cant seem to find a definitive answer.
Please advise.
The Google Chart API is an extremely simple tool that lets you easily create a chart from some data and embed it in a webpage. You embed the data and formatting parameters in an HTTP request, and Google returns a PNG image of the chart.
Can I use charts offline? Your users' computers must have access to https://www.gstatic.com/charts/loader.js in order to use the interactive features of Google Charts. This is because the visualization libraries that your page requires are loaded dynamically before you use them.
Google charts While the charts themselves are generated using HTML5 and SVG additional accessibility is provided by also including the chart data in an accessible HTML table for screen readers.
You load some Google Chart libraries, list the data to be charted, select options to customize your chart, and finally create a chart object with an id that you choose. Then, later in the web page, you create a <div> with that id to display the Google Chart. That's all you need to get started.
I found the answer to my question. There is a Data Policy section in the Google documentation for each type of visualisation, Area Chart, Line Chart, Annotated Time Line etc. For the visualisations I'm interested in using the Data Policy section states:
All code and data are processed and rendered in the browser. No data is sent to any server.
Guess I didn't see the wood for the trees!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With