# An example of a Funnel 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.funnel.js"></script>

Put this where you want the chart to show up:

    <canvas id="cvs" width="400" height="550">
        [No canvas support]
    </canvas>

This is the code that generates the chart:

    <script>
        window.onload = function ()
        {
            var funnel = new RGraph.Funnel({
                id: 'cvs',
                data: [500,422,215,56,32,5],
                options: {
                    key: ['Phone call','Interview','Selection','2nd Interview','Offer'],
                    keyInteractive: true,
                    keyPositionX: 265,
                    gutterRight: 125
                }
            }).draw();
        };
    </script>