About
RGraph is a JavaScript charts library based on
HTML5 SVG and canvas. RGraph is mature (over 17 years
old) and has a wealth of features making it an ideal
choice to use for showing charts on your website.
Version 7.01 released
Version 7.01 (released in October 2025) is the
latest version of RGraph and now includes a new tree
structure object. The accompanying Treemenu object can then turn
the object into a fully dynamic tree menu.
You can read the API documentation for the tree on
the main API documentation page
and see an example of the Treemenu
feature by following this link...
New HTML datagrid
In the April 2025 (v6.21) release a new datagrid object
was added.
This makes it easy to add static or dynamic data
tables to your pages. It can be used whether you use the
canvas or SVG libraries or entirely standalone.
Download
Get the latest version of RGraph (version 7.01, 8th October 2025) 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.
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.Videos available on the RGraph YouTube channel
Since late 2023 RGraph has had a YouTube channel! You'll find demo walk-throughs and feature information there. Here's a list of all the videos on there or you can go to the YouTube channel.
Watch a video about the RGraph datagrid object that was added to RGraph in version 6.21. It allows you to easily show consistent data tables across your whole website.
Watch an introduction to the new scale property that was introduced in version 7. This new feature dramatically improves the quality of the text on your charts.
Watch a walk-through of the scatter-trendline.html demo. A Scatter chart with a trendline where tickmarks above the line are one color and tickmarks below the trendline are another.
Watch a walk-through of the bar-population-balearic.html demo. A Bar chart with significantly customised tooltips.
Watch a walk-through of the bar-borders.html Bar chart demo. A straight-forward Bar chart where the bars have vertical borders on either side.
Watch an introduction to the new (in version 6.17) clip: property which helps you make combined charts such as multi-colored Line charts.
Watch a walk-through of this latest dynamic, scrolling Line chart demo. New data is added on the right-hand-side and old data is removed from the left-hand-side.
An explanation of the responsive configuration option that can be used in your chart configuration.
An explanation of how to add "Copy to clipboard" buttons to your example code
Walk-through of a customised Funnel chart demo
Walk-through of a Horizontal Bar chart smoothed vertical line demo
Walk-through of a dark themed Line chart demo
Walk-through of the 100% Bar chart demo
How to configure a basic Bar chart