MENU
.net Powerful JavaScript charts
About
RGraph is a JavaScript charts library based on HTML5 SVG and canvas. RGraph is mature (over 15 years old) and has a wealth of features making it an ideal choice to use for showing charts on your website.

More »

 

Download
Get the latest version of RGraph (version 6.18, 1st June 2024) 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.

More »

 

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 »

SVG Bipolar updated to support uneven data

Written by Richard Heyes, RGraph author, on 1st April 2022

This isn't an April Fools joke I promise (!) - the svg Bipolar chart has been updated to support uneven data. What does this mean? Well just take a look at the image shown here - you can now mix regular and grouped/stacked sets of bars on the same chart and it won't explode! Which is nice.

<script>
    new RGraph.SVG.Bipolar({
        id: 'chart-container',
        left: [[4,5,1],8,6,[4,8,8],[5,1,2,3],1,[8,6]],
        right: [9,[5,4,3,5],[4,2],4,1,[8,8,4,3],[4,5]],
        options: {
            tooltips: 'Value: %{value}',
            yaxisLabels: ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'],
            textSize: 16,
            textBold: true
        }
    }).draw();
</script>