An example of using the Google sheets connector to retrieve data from a Google Sheets spreadsheet. The data that's retrieved is combined and used as the Scatter chart coordinates.
This goes in the documents header:<script src="RGraph.svg.common.core.js"></script> <script src="RGraph.svg.common.sheets.js"></script> <script src="RGraph.svg.scatter.js"></script>Put this where you want the chart to show up:
<div style="width: 1000px; height: 300px" id="chart-container"></div>This is the code that generates the chart: