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 »


Get the latest version of RGraph (version 6.18, 1st June 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.

More »


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 »

Version 5.23 of RGraph is now available

Written by Richard Heyes, RGraph author, on 30th April 2020

It's been not quite two months since version 5.22 was released so it's about time that I released 5.23 - so that's what I've done!

A notable change is that you can now use (certain) tooltip substitutions in the tooltipsCss values as well as in the tooltips themselves. This makes it even easier to customise how your tooltips look. So you could set the css like this:

// Some colors used by the chart
colors: ['red','green','blue'],

// A custom property
tooltipBackgroundColors: [

// Some CSS values for the tooltips that use substitutions
tooltipsCss: {
    fontSize: '24pt',
    border: '3px solid %{property:colors[%{dataset}]}',
    backgroundColor: '%{property:tooltipBackgroundColors[%{dataset}]}'

The Line chart has had dataset tooltips added. These are just like regular tooltips but allow you to click anywhere on a line and get a tooltip. You can have one for every dataset that's shown on the chart. This feature uses the newer canvas function isPointInStroke so there are a few really old browsers (Internet Explorer 11, for example) that don't support this function or feature.

Various charts have had the highlightStyle invert option added. Using this in conjunction with the highlightFill option to specify the color you can have the charts fade out the non-selected shapes instead of highlighting the focused bar. For an example of this, you can see it on this demo page.

Other changes can be seen on the changelog page and you can download the latest version from the download page.