# An example of a VProgress chart with an interactive key

The interactive key has been re-implemented as of June 2013 and added to more chart types.

This goes in the documents header:

    <script src="RGraph.common.core.js"></script>
    <script src="RGraph.common.dynamic.js"></script>
    <script src="RGraph.common.key.js"></script>
    <script src="RGraph.drawing.rect.js"></script>
    <script src="RGraph.vprogress.js"></script>

Put this where you want the chart to show up:

    <canvas id="cvs" width="250" height="500">
        [No canvas support]
    </canvas>

This is the code that generates the chart:

    <script>
        window.onload = function ()
        {
            var vprogress = new RGraph.VProgress({
                id: 'cvs',
                min: 0,
                max: 100,
                value: [10,12,13,16,18],
                options: {
                    textSize: 12,
                    key: ['Jim','Jack','Joseph','Jane', 'Jimmy'],
                    keyInteractive: true,
                    keyPositionX: 140,
                    keyPositionY: 20,
                    gutterRight: 150,
                    textAccessible: true
                }
            }).draw();
        };
    </script>