MENU
.net Powerful JavaScript charts
About
RGraph is a JavaScript charts library based on HTML5 SVG and canvas. RGraph is mature (over 15 years old) and has a wealth of features making it an ideal choice to use for showing charts on your website.

More »

 

Download
Get the latest version of RGraph (version 6.19, 28th September 2024) from the download page. You can read the changelog here. There's also older versions available, minified files and links to cdnjs.com hosted libraries.

Download »

 

License
RGraph can be used for free under the GPL or if that doesn't suit your situation there's an inexpensive (£129) commercial license available.

More »

The RGraph Google Sheets connectors have been upgraded

Written by Richard Heyes, RGraph author, on 13th May 2019

Previously the Google Sheets connector supported fetching rows, columns and cells by using the get method. This method has now been updated to also support the fetching of a matrix of cells.

So whereas previously you could fetch individual rows, columns and cells - you can now fetch multiple rows of information in a single operation. For example:

var matrix = sheet.get('A2:E13');

You can see this in action by viewing the example chart on the Google Sheets documentation page.

Also, recently new is the PHP version of the Google Sheets connector. So now there are versions available for the canvas and svg libraries - and now one for php too.

You may ask why a php version is relevant - there are a couple of reasons that come to mind immediately:

  • You don't want to embed the id of your Google Sheet into the page.
    Maybe you don't want to share this information - despite the spreadsheet not being publicly available.
  • You need to incorporate the data into your back-end code.
    Perhaps you need to use the data from your spreadsheet in your php or other server-based code.

If you don't use php then it shouldn't be too difficult for you to take this code and convert it into whatever language that you do use - php isn't exactly difficult to read and understand!

So now that's three libraries for Google Sheets - two of which are essentially the same and another for when you're looking to access your spreadsheet from php.

If you don't already use Google Sheets then it's well worth a look. It's essentially a web-based Excel.

It doesn't have all of the features of Excel but if your usage isn't too intense then it could save you a lot of money (since Google Sheets is basically free).

Availability

The php version of the tool is available immediately - and you can download the source code here. The canvas and svg javascript versions will however be available with the next version of RGraph when it's released (version 5.01).