MENU
.net Powerful JavaScript charts
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.

More »

 

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

More »

 

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.

Read more »

 

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.

Download »

 

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 »

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>