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

More »

 

Version 7.20
Version 7.20 (released in June 2026) is the latest version of RGraph and the major change in this version is an update to the default values of properties making for better looking charts without having to set any properties. Read more about this and other changes in the changelog.

Download »

 

Download
Get the latest version of RGraph (version 7.20, 9th June 2026) 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 »

 

Latest forum posts
These are the latest support forum posts that have been posted or updated.

9th June, Richard
New version of RGraph: version 7.20
3rd June, Patrick
Question about installing RGraph
1st June, Ouja
How do I add a click event to a bar in my Bar chart?
8th May, Anthony Kuma
Does the SVG Line chart have outofbounds functionality?


Support forum »

 

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 »

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: [
    'rgb(255,239,239)',
    'rgb(239,255,239)',
    'rgb(239,239,255)'
],

// 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.

https://www.rgraph.net/download.html#stable