Here we have three Pie charts that have been configured to look like gauges
showing percentages. They're regular Pie charts with two colors but then a
big black circle is added over the top which makes them look like donut
charts (somewhat). And finally the text is added to the center in the draw
event.
There's also three Horizontal Progress bars placed at the bottom of the SVG drawing area. These progress bars are actually Horizontal Bar charts that are configured with just a single data point so that there's just one bar - which effectively makes it a progress bar. You can make Vertical Progress bars in a similar manner by using the regular Bar chart.
Like the canvas chart libraries you can make other types of charts using the regular SVG chart libraries and combining them. Eg a combined Bar and Line chart.
This goes in the documents header:<script src="RGraph.svg.common.core.js"></script> <script src="RGraph.svg.hbar.js"></script> <script src="RGraph.svg.pie.js"></script>Put this where you want the chart to show up:
<style> div#meters{ position: relative; background-color: black; height: 425px; } div#meters div { float: left; width: 300px; height: 300px; } div#chart-container4, div#chart-container5, div#chart-container6 { position: absolute !important; left: 0 !important; top: 280px !important; width: 900px !important; height: 70px !important; } div#chart-container5 {top: 310px !important;} div#chart-container6 {top: 340px !important;} </style> <div id="meters"> <div id="chart-container1"></div> <div id="chart-container2"></div> <div id="chart-container3"></div> <div id="chart-container4"></div> </div>This is the code that generates the chart: