A resizable Bar chart

[No canvas support]

This goes in the documents header:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">>/script>
<script src="RGraph.common.core.js"></script>
<script src="RGraph.common.dynamic.js"></script>
<script src="RGraph.common.resizable.js"></script>
<script src="RGraph.bar.js"></script>
Put this where you want the chart to show up:
<canvas id="cvs" width="700" height="250">
    [No canvas support]
</canvas>
This is the code that generates the chart:
<script>
    window.onload = function ()
    {
        var bar = new RGraph.Bar({
            id: 'cvs',
            data: [12,18,10,9,6,20,18],
            options: {
                resizable: true,
                labels: ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'],
                shadow: false,
                colors: ['red'],
                strokestyle: 'rgba(0,0,0,0)',
                textAccessible: true
            }                
        }).draw();
    };
</script>

Share on Facebook Share on Twitter

« Back