This chart also uses the ES6 spread operator so that there's no repetition of the configuration.
<script src="RGraph.common.core.js"></script> <script src="RGraph.line.js"></script>Put this where you want the chart to show up:
<div style="text-align: center"> <canvas id="cvs" width="900" height="300">[No canvas support]lt/canvas> </div>This is the code that generates the chart - it should be placed AFTER the canvas tag(s):