# An example of a HProgress 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.hprogress.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>
        window.onload = function ()
        {
            var hprogress = new RGraph.HProgress({
                id: 'cvs',
                min: 0,
                max: 100,
                value: [10,12,13,16,18],
                options: {
                    textAccessible: true,
                    key: ['Jim','Jack','Joseph','Jane', 'Jimmy'],
                    keyInteractive: true,
                    gutterTop: 50
                }
            }).draw();
        };
    </script>