A 3D HProgress chart (using the 3D HBar chart)

[No canvas support]
This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.hbar.js"></script>
Put this where you want the chart to show up:
<canvas id="cvs" width="600" height="150">[No canvas support]</canvas>
This is the code that generates the chart:
<script>
    var hbar = new RGraph.HBar({
        id: 'cvs',
        data: [51],
        options: {
            textAccessible: true,
            colors: ['Gradient(#fcc:red:red)'],
            scaleZerostart: true,
            variant: '3d',
            gutterLeft: 100,
            shadow: true,
            shadowOffsety:  -5,
            shadowOffsetx: 13,
            shadowBlur: 10,
            shadowColor: '#aaa',
            vmargin: 10,
            noaxes: true,
            labels: ['% Complete'],
            xmax: 100,
            unitsPost: '%'
        }
    }).grow();
</script>

Share on Facebook Share on Twitter

« Back