B-Meter

Meter to visualize Button Operations Per Second for THE BUTTON.

by Ben Wochinski

HTML

<link rel="stylesheet" href="http://www.jqplot.com/deploy/dist/jquery.jqplot.min.css">
<script src="http://www.jqplot.com/deploy/dist/jquery.jqplot.min.js"></script>
<script src="http://www.jqplot.com/deploy/dist/plugins/jqplot.meterGaugeRenderer.min.js"></script>
<script src="http://www.jqplot.com/deploy/dist/jquery.min.js"></script>

JavaScript

s1 = [52200];
    
    plot4 = $.jqplot('chart4',[s1],{
        seriesDefaults: {
            renderer: $.jqplot.MeterGaugeRenderer,
            rendererOptions: {
                label: 'Metric Tons per Year',
                labelPosition: 'bottom',
                labelHeightAdjust: -5,
                intervalOuterRadius: 85,
                ticks: [10000, 30000, 50000, 70000],
                intervals:[22000, 55000, 70000],
                intervalColors:['#66cc66', '#E7E658', '#cc6666']
            }
        }
    });