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 show charts on your website.

More »

 

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

More »

 

Download
Get the latest version of RGraph (version 6.16) from the download page. There's also older versions available, minified files and links to cdnjs.com hosted libraries.

More »

Download RGraph

The current RGraph changelog and older release notes

The changelog is a summary of changes to RGraph that may interest you or that you should be aware of. You can also find older release notes for past releases here.

Backwards compatibility breaks

Occasionally backwards compatibility has to break - you can read about those breaks here.

Download minified versions of RGraph

You can download pre-minified versions of the libraries (which have extraneous whitespace and comments removed).

Download older versions of RGraph

If you need an older version of RGraph you can find a list going back to version 4.59 (December 2016) below.

Find RGraph on GitHub

After some time (too much!) RGraph is now available through GitHub. It doesn't use all of the features that GitHub offers - but as time goes on that will change - particularly as my familiarity with the platform grows.

View the source code of the RGraph files

If you want to view the original library files and see the source code then you can use these links. As new versions are released then these will of course be the latest versions. Note that the cdnJS links take a day or so to update after I've released a new version.

SVG common libraries

  • RGraph.svg.common.ajax.js (6kb) [GitHub: home raw] [CDN: src min]
  • RGraph.svg.common.core.js (211kb) [GitHub: home raw] [CDN: src min]
  • RGraph.svg.common.csv.js (12kb) [GitHub: home raw] [CDN: src min]
  • RGraph.svg.common.fx.js (42kb) [GitHub: home raw] [CDN: src min]
  • RGraph.svg.common.key.js (15kb) [GitHub: home raw] [CDN: src min]
  • RGraph.svg.common.sheets.js (15kb) [GitHub: home raw] [CDN: src min]
  • RGraph.svg.common.table.js (11kb) [GitHub: home raw] [CDN: src min]
  • RGraph.svg.common.tooltips.js (31kb) [GitHub: home raw] [CDN: src min]

SVG libraries

Canvas common libraries

  • RGraph.common.annotate.js (13kb) [GitHub: home raw] [CDN: src min]
  • RGraph.common.context.js (24kb) [GitHub: home raw] [CDN: src min]
  • RGraph.common.core.js (345kb) [GitHub: home raw] [CDN: src min]
  • RGraph.common.csv.js (15kb) [GitHub: home raw] [CDN: src min]
  • RGraph.common.dynamic.js (66kb) [GitHub: home raw] [CDN: src min]
  • RGraph.common.effects.js (54kb) [GitHub: home raw] [CDN: src min]
  • RGraph.common.key.js (34kb) [GitHub: home raw] [CDN: src min]
  • RGraph.common.moment.js (170kb) [GitHub: home raw] [CDN: src min]
  • RGraph.common.sheets.js (15kb) [GitHub: home raw] [CDN: src min]
  • RGraph.common.starburst.js (12kb) [GitHub: home raw] [CDN: src min]
  • RGraph.common.table.js (10kb) [GitHub: home raw] [CDN: src min]
  • RGraph.common.tooltips.js (41kb) [GitHub: home raw] [CDN: src min]

Canvas libraries

Canvas drawing API libraries

  • RGraph.drawing.background.js (21kb) [GitHub: home raw] [CDN: src min]
  • RGraph.drawing.circle.js (17kb) [GitHub: home raw] [CDN: src min]
  • RGraph.drawing.image.js (25kb) [GitHub: home raw] [CDN: src min]
  • RGraph.drawing.line.js (19kb) [GitHub: home raw] [CDN: src min]
  • RGraph.drawing.marker1.js (22kb) [GitHub: home raw] [CDN: src min]
  • RGraph.drawing.marker2.js (21kb) [GitHub: home raw] [CDN: src min]
  • RGraph.drawing.marker3.js (16kb) [GitHub: home raw] [CDN: src min]
  • RGraph.drawing.poly.js (19kb) [GitHub: home raw] [CDN: src min]
  • RGraph.drawing.rect.js (17kb) [GitHub: home raw] [CDN: src min]
  • RGraph.drawing.text.js (20kb) [GitHub: home raw] [CDN: src min]
  • RGraph.drawing.xaxis.js (19kb) [GitHub: home raw] [CDN: src min]
  • RGraph.drawing.yaxis.js (20kb) [GitHub: home raw] [CDN: src min]

Get the RGraph libraries on cdnjs.com

If you wish to use a CDN (Content Delivery Network) for the RGraph libraries, they're available via cdnjs.com. You can view the libraries that are available at the link below:

Download PhantomJS - the command-line browser

If you want to create charts or simply render web pages from command-line scripts then PhantomJS is for you.

The PhantomJS project appears to have stalled - but using the download archives that I've mirrored here you can still happily use it to create charts from command-line scripts etc.

Here is an example page that you could put on your website that creates a Line chart. You can request and download this page with PhantomJS which can then save the image of the page to your local machine (or wherever you're running PhantomJS from).

It doesn't have to be the whole page - if you want, PhantomJS can save an image of just a portion of the page - in this case just the top left using a width and height that matches the size of the chart.

Thus you then have an image of just the chart that you can use wherever you wish. You could even rig it so that neither svg nor canvas are used on your website at all and you just use PhantomJS behind the scenes so that you only use images on your website.

Here's some example PhantomJS code that I've previously used to get a picture of the above test page saved locally:

    var page = require('webpage').create();
    
    page.open('https://www.rgraph.net/phantomjs.html', function()
    {
        page.viewportSize = {
            width: 850,
            height: 300
        };
        
        page.render('rgraph-canvas.png');
        
        phantom.exit(0);
    });
    

There's also a PhantomJS HOWTO guide that applies to both the svg and canvas libraries.