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 »

A 3D Rose chart

A 3D Rose chart. The 3D Rose chart has a nice aesthetic to it and could work well as part of a presentation.
[No canvas support]

Here's a novel version of the more traditional 2D Rose chart - the 3D Rose chart. It doesn't add any advantages over the 2D version - though it might make your presentations look a little nicer!

There are tooltips, which you can see by clicking on the segments as usual. These tooltips were formerly built dynamically. They still are currently however the method that's used has changed to the new (version 5.22) formatted tooltips.

This means the amount of code has been both reduced and simplified. The tooltips are created by concatenating the name (the %{property:myNames[%{index}]} bit) and the value (the %{value} bit).

In terms of responsive features, on smaller screens, it switches from 3D to 2D and is slightly smaller. The labels are changed from the full names of the weekdays to the shorter three-letter variations.


This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.common.dynamic.js"></script>
<script src="RGraph.common.tooltips.js"></script>
<script src="RGraph.rose.js"></script>
Put this where you want the chart to show up:
<div style="float:right">
    <canvas id="cvs" width="600" height="300">[No canvas support]</canvas>
</div>
This is the code that generates the chart - it should be placed AFTER the canvas tag(s):
<script>
    labels_small = ['Mon','Tue','Wed','Thu','Fri','Sat','Sun'];
    labels_large = ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'];

    // This is a stacked 3D Rose chart. The data is the same as a regular stacked
    // Rose chart and looks just like the data that you'd pass to a grouped or
    // stacked Bar chart.

    new RGraph.Rose({
        id: 'cvs',
        data: [[4,8,7],[6,5,8],[4,5,3],[4,9,8],[3,8,6],[4,6,3],[1,5,8]],

        options: {
            // A custom property used in the tooltips
            myNames: ['Wilf','Harry','Gerrard'],

            margin: 7,
            variant: '3d',
            variantThreedDepth: 10,
            labelsAxes: 'n',
            colors: ['gradient(#faa:red)','Gradient(#afa:green)','gradient(#aaf:#ddf)'],
            
            // Tooltips, given as a template string
            tooltips: '%{property:myNames[%{index}]} on %{property:labels[%{dataset}]}: <b>%{value}%</b>',
            
            // Some CSS styles that are added to the tooltips
            tooltipsCss: {
                fontSize:'20pt'
            },

            labels: labels_large,
            responsive: [
                {maxWidth: null, width: 600, height: 300,options:{labels:labels_large,variant:'3d'},parentCss: {'float':'right',textAlign: 'center'}},
                {maxWidth: 800, width: 400, height: 350,options:{labels:labels_small,variant:'none'},parentCss: {'float':'none',textAlign: 'center'}}
            ]
        }
    }).grow({frames: 15});
</script>