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 »

 

SQLite Editor for PHP
The SQLite Editor for PHP software is a tool which will help you and/or your users administer and maintain your SQLite databases. Built as a tool that you can easily provide to your users, there's no danger of them damaging your database.

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.


23rd June, Richard
The SQLite Editor for PHP admin tool is now available for you to download

16th June, Rachel
I have a question about the 3D Bar chart

12th June, Marco
Should I use SVG or canvas for the charts on my website?

9th June, Richard
New version of RGraph: version 7.20

3rd June, Patrick
Question about installing RGraph

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 »

The new RGraph DataGrid

Written by Richard Heyes, RGraph author, on 24th February 2025
The new RGraph Datagrid coming in version 6.21 enables you to quickly show a datagrid based on a two dimensional array of data.

Here's a demonstration of the new DataGrid that's coming in RGraph version 6.21 that I previously mentioned. You can click on the columns to sort the table by that column (if enabled) and the columns are resizable by grabbing in between the columns in the header row. You can also edit the column if you want to by double-clicking on the cell.

There's more work on it to be done, but I think that you'll agree that it's already looking and functioning rather nicely. By using this datagrid on your page along with the RGraph charts and a smattering of ajax you could make yourself quite a nice little client-side application that saves its data to your server.

If you look at the source code of this page you'll see that the datagrid library is inlined which is obviously not great for code reuse and you wouldn't do that normally. You would just use the library as you do other RGraph libraries. Here's a full code example that produces the table shown here:

<div style="margin-left: auto; margin-right: auto; width: 75%" id="myDatagrid"></div>

<script>
    data = [
        ['Bill','Orange',7.3,'Oranges are not the only fruit', 9],
        ['Richard','Apple',9,'Green', 9],
        ['John','Cherry',5,'Red', 10],
        ['Fred','Mango',3.8,'Yellow',6],
        ['Lucy','Pineapple',7000.7,'Yellow',4000]
    ];
        
    new RGraph.DataGrid({
        id: 'myDatagrid',
        data: data,
        options: {
            columnsHeaders: ['Operator','Fruit','Weight','Color','Price'],
            //columnsFooters: ['','','','',''],
            columnsUnitsPre: [,,,,'$'],
            columnsUnitsPost: [,,'kg'],
            //columnsThousand: [],
            //columnsPoint: [],
            columnsDecimals: [,,1,,2],
            //columnsFormatter:[],
            //columnsClick: [],
            sortable: true,
            sortableColumns: [4,2],
            editable: true,
            resizable: true
        }
    }).draw();
</script>