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.
Version 7.10 released
Version 7.10 (released in January 2026) is the
latest version of RGraph and contains various updates
to the code which you can see on
the changelog page. There's
also a big tidy up in terms of comments and a significant
change to the way that the internal code is referenced which
should lead to a performance improvement in effects and
animations.
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.10, 18th January 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.
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.A new 3D Bar chart demo
Written by Richard Heyes, RGraph author, on 10th December 2022
I've added a new 3D Bar chart demo to the download archive called bar-menu-choices.html - an image
of which is shown here. It's a standard 3D Bar chart but with the variantThreedAngle option set to
0 so that it doesn't have a perfectly correct 3D appearance - but still looks good.
To enable this chart a few new 3D options have been added to the Bar chart:
variantThreedXaxisColor(#ddd)variantThreedYaxisColor(#ddd)backgroundGridThreedYaxis(true)
These options will be available from the next release of RGraph - version 6.10. The full code for the chart is as follows:
<script>
new RGraph.Bar({
id: 'cvs',
data: [[37,31],[45,24],[15,36],[28,25]],
options: {
colors: ['#eab904','#ca6053'],
variant: '3d',
variantThreedAngle: 0,
variantThreedYaxisColor: 'rgba(216,216,216,0.7)',
variantThreedOffsetx:15,
variantThreedOffsety:10,
backgroundGridVlines: false,
backgroundGridHlinesCount: 10,
backgroundGridBorder: false,
backgroundGridColor: 'gray',
variantThreedYaxisColor: 'rgba(0,0,0,0.15)',
marginInner: 30,
marginLeft: 55,
marginBottom: 100,
marginTop: 95,
xaxis: false,
yaxis: false,
xaxisLabels:['Haddock &\r\nchips','Beef madras\r\nwith rice','Vegetable\r\nlasagne','Roast turkey &\r\ntrimmings'],
xaxisLabelsOffsety: 3,
yaxisLabelsBold: true,
xaxisLabelsBold: true,
yaxisTitle: 'Number of people',
yaxisTitleBold: true,
yaxisScaleMax: 50,
yaxisLabelsCount: 10,
key: ['Male','Female'],
keyPosition: 'margin',
keyPositionOffsetx: 10,
keyPositionOffsety: -15,
keyLabelsOffsety: 2,
keyColorShape: 'circle',
title: 'Menu choices',
titleOffsety: -15,
titleSize: 20
}
}).wave();
</script>