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 show charts on your website.

More »

 

License
RGraph can be used for free under the GPL or if that doesn't suit your situation there's an inexpensive (£99) commercial license available.

More »

 

Download
Get the latest version of RGraph (version 6.16) from the download page. There's also older versions available, minified files and links to cdnjs.com hosted libraries.

More »

Tryng to fit a pie and Bar chart on to the canvas


Posted by Vinit saini at 13:21 on Thursday 10th December 2020 [link]
All pie chart keys not showing.
https://prnt.sc/vzqfi8

Bar chart overlapping
https://prnt.sc/vzqi2y

Posted by Richard at 16:23 on Thursday 10th December 2020 [link]
1. You could use the DIV/overflow technique as detailed in point 2. There's a codepen that shows this here:

https://codepen.io/rgraph/pen/bGwBdEX

2. For this you could use CSS overflow and have a large canvas contained within a smaller DIV that has the overflow set to auto (so that a scrollbar appears).

https://codepen.io/rgraph/pen/PoGbqoV

[Replies are now closed]