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 »

 

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.

Download »

 

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

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 »

How do I remove the old chart or reset the data?


Posted by Roshni at 10:09 on Tuesday 5th October 2021 [link]
Hello,

I have dropdown of city and onchange I need to reload new chart based on values but the old chart is remain as it is and new values has been ovelapping so can you please let me know what should I do or is there any code to remove or reset chart data.

Posted by Richard at 10:26 on Tuesday 5th October 2021 [link]
What you need to do is remove the old chart from the ObjectRegistry - which is where RGraph keeps track of what objects there on the canvas.

The easiest way to do this is to use the reset() function instead of the clear() function:

var myCanvas = document.getElementById('cvs');

RGraph.reset(myCanvas);

[Replies are closed]