RGraph is a JavaScript charts library based on
HTML5 SVG and canvas. RGraph is mature (over 16 years
old) and has a wealth of features making it an ideal
choice to use for showing charts on your website.
Get the latest version of RGraph (version 6.20, 1st December 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.
Also, if you add a CSS border to the canvas tag (or div tag in the case of SVG charts) then it will be clearer where the boundaries of the tag are. For example:
Posted by steve at 01:44 on Wednesday 24th January 2024[link]
Thank you for your reply.
When a developer can modify a chart, you can use the marginBottom property to modify the bottom of the 3d chart to cut off,
What should I do when I can't modify the chart file?
I have to set the value of the marginBottom, but the bottom of the 3D chart is not cut off
Even if I don't set the marginBottom value, I'm looking for a way because I don't want the chart to cut out when the value of variatnThreadAngle is 0.1 default.
The marginBottom value is set to 35 by default,
Isn't it weird that the bottom of the chart is cut off unconditionally when I set it on a 3D chart?
So I'm looking at the Rgraph.core.js or the Rgraph.bar .js file,
I asked if there was a proper way to fix it.
Posted by Richard at 10:18 on Wednesday 24th January 2024[link]
It's not weird - it's just necessary. The default marginBottom value is 35 which accommodates most charts and provides space for the labels. 3D Bar charts are different though - because the chart then becomes angled (which you change if you want like I showed you) you need more space at the bottom to accommodate this. Hence the need to increase the marginBottom value.
I could look into automatically increasing the bottom margin when 3D charts are requested and the value hasn't been changed by the user since it always needs increasing with 3D charts.
For the moment though - you will need to increase the marginBottom or change the variantThreedAngle to 0.