[77] | 1 | <?php ob_start('ob_gzhandler') ?> |
---|
| 2 | <!DOCTYPE html> |
---|
| 3 | <html> |
---|
| 4 | <head> |
---|
| 5 | <meta http-equiv="X-UA-Compatible" content="chrome=1"> |
---|
| 6 | <!-- |
---|
| 7 | /** |
---|
| 8 | * o------------------------------------------------------------------------------o |
---|
| 9 | * | This file is part of the RGraph package - you can learn more at: | |
---|
| 10 | * | | |
---|
| 11 | * | http://www.rgraph.net | |
---|
| 12 | * | | |
---|
| 13 | * | This package is licensed under the RGraph license. For all kinds of business | |
---|
| 14 | * | purposes there is a small one-time licensing fee to pay and for non | |
---|
| 15 | * | commercial purposes it is free to use. You can read the full license here: | |
---|
| 16 | * | | |
---|
| 17 | * | http://www.rgraph.net/LICENSE.txt | |
---|
| 18 | * o------------------------------------------------------------------------------o |
---|
| 19 | */ |
---|
| 20 | --> |
---|
| 21 | <title>RGraph: Javascript charts and graph library - funnel chart</title> |
---|
| 22 | |
---|
| 23 | <meta name="keywords" content="rgraph html5 canvas example funnel chart" /> |
---|
| 24 | <meta name="description" content="RGraph: Javascript charts and graph library - Funnel charts examples" /> |
---|
| 25 | |
---|
| 26 | <meta property="og:title" content="RGraph: Javascript charts and graph library" /> |
---|
| 27 | <meta property="og:description" content="A charts library based on the HTML5 canvas tag" /> |
---|
| 28 | <meta property="og:image" content="http://www.rgraph.net/images/logo.png"/> |
---|
| 29 | |
---|
| 30 | <link rel="stylesheet" href="../css/website.css" type="text/css" media="screen" /> |
---|
| 31 | <link rel="icon" type="image/png" href="../images/favicon.png"> |
---|
| 32 | |
---|
| 33 | <script src="../libraries/RGraph.common.core.js" ></script> |
---|
| 34 | <script src="../libraries/RGraph.common.context.js" ></script> |
---|
| 35 | <script src="../libraries/RGraph.common.annotate.js" ></script> |
---|
| 36 | <script src="../libraries/RGraph.common.tooltips.js" ></script> |
---|
| 37 | <script src="../libraries/RGraph.common.zoom.js" ></script> |
---|
| 38 | <script src="../libraries/RGraph.common.resizing.js" ></script> |
---|
| 39 | <script src="../libraries/RGraph.funnel.js" ></script> |
---|
| 40 | <!--[if IE 8]><script src="../excanvas/excanvas.original.js"></script><![endif]--> |
---|
| 41 | |
---|
| 42 | <script> |
---|
| 43 | /** |
---|
| 44 | * The onload function creates the graph |
---|
| 45 | */ |
---|
| 46 | window.onload = function () |
---|
| 47 | { |
---|
| 48 | var funnel = new RGraph.Funnel('funnel1', [100,45,45,26,21,5]); |
---|
| 49 | funnel.Set('chart.gutter.top', 40); |
---|
| 50 | funnel.Set('chart.text.boxed', false); |
---|
| 51 | funnel.Set('chart.title', 'Leads progressing to sales'); |
---|
| 52 | |
---|
| 53 | funnel.Set('chart.shadow', true); |
---|
| 54 | funnel.Set('chart.shadow.color', 'gray'); |
---|
| 55 | funnel.Set('chart.shadow.blur', 25); |
---|
| 56 | funnel.Set('chart.shadow.offsetx', 0); |
---|
| 57 | funnel.Set('chart.shadow.offsety', 0); |
---|
| 58 | |
---|
| 59 | if (!RGraph.isIE8()) { |
---|
| 60 | |
---|
| 61 | /** |
---|
| 62 | * This gradient is for the highlight fill |
---|
| 63 | */ |
---|
| 64 | var grad = funnel.context.createLinearGradient(funnel.Get('chart.gutter.left'),0,funnel.canvas.width - funnel.Get('chart.gutter.right'),0); |
---|
| 65 | grad.addColorStop(1, 'white'); |
---|
| 66 | grad.addColorStop(0, 'rgba(255,255,255,0)'); |
---|
| 67 | |
---|
| 68 | funnel.Set('chart.tooltips', [ |
---|
| 69 | 'id:tooltip_contact', |
---|
| 70 | 'id:tooltip_lead', |
---|
| 71 | 'id:tooltip_call', |
---|
| 72 | 'id:tooltip_visit', |
---|
| 73 | 'id:tooltip_sale', |
---|
| 74 | '<b>After sales concern</b><br />An after sales concern or query was raised by the Customer.' |
---|
| 75 | ]); |
---|
| 76 | |
---|
| 77 | funnel.Set('chart.tooltips.effect', 'fade'); |
---|
| 78 | funnel.Set('chart.highlight.fill', grad); |
---|
| 79 | funnel.Set('chart.zoom.hdir', 'center'); |
---|
| 80 | funnel.Set('chart.zoom.vdir', 'up'); |
---|
| 81 | funnel.Set('chart.contextmenu', [['Zoom in', RGraph.Zoom]]); |
---|
| 82 | } |
---|
| 83 | |
---|
| 84 | funnel.Set('chart.labels', ['Initial contact', 'Established lead', 'Telephone contact', 'Site visit', 'Sale', 'After sales']); |
---|
| 85 | funnel.Set('chart.text.boxed', true); |
---|
| 86 | funnel.Draw(); |
---|
| 87 | |
---|
| 88 | |
---|
| 89 | var funnel2 = new RGraph.Funnel('funnel2', [56,45,12,4,3,2,1]); |
---|
| 90 | funnel2.Set('chart.title', 'A funnel'); |
---|
| 91 | funnel2.Draw(); |
---|
| 92 | } |
---|
| 93 | </script> |
---|
| 94 | |
---|
| 95 | <script> |
---|
| 96 | var _gaq = _gaq || []; |
---|
| 97 | _gaq.push(['_setAccount', 'UA-54706-2']); |
---|
| 98 | _gaq.push(['_trackPageview']); |
---|
| 99 | |
---|
| 100 | (function() { |
---|
| 101 | var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
---|
| 102 | ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
---|
| 103 | var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
---|
| 104 | })(); |
---|
| 105 | </script> |
---|
| 106 | </head> |
---|
| 107 | <body> |
---|
| 108 | |
---|
| 109 | <!-- Social networking buttons --> |
---|
| 110 | <div id="social_icons" class="warning" style="border-radius: 10px; top: 1px; position: fixed"> |
---|
| 111 | <a title="Bookmark with delicious" href="http://delicious.com/save?jump=close&v=4&noui&jump=close&url=http://www.rgraph.net¬es=RGraph%20is%20a%20HTML5%20based%20javascript%20charts%20library%20supporting%20a%20wide%20range%20of%20different%20charts%20types&title=RGraph:Javascript%20charts%20and%20graphs%20library" target="_blank"><img src="../images/delicious.png" alt="Bookmark with delicious" width="22" height="22" border="0" align="absmiddle" /></a> |
---|
| 112 | <a href="http://twitter.com/home/?status=RGraph%3A%20Javascript+charts+and+graph+library+http%3A%2F%2Fwww.rgraph.net+%23rgraph+%23html5+%23canvas+%23javascript+%23charts+@_rgraph" target="_blank"><img src="../images/twitter.png" id="twitter_icon" alt="tweet this site" width="22" height="22" border="0" align="absmiddle" /></a> |
---|
| 113 | </div> |
---|
| 114 | |
---|
| 115 | <script> |
---|
| 116 | // Opera fix |
---|
| 117 | if (navigator.userAgent.indexOf('Opera') == -1) { |
---|
| 118 | document.getElementById("social_icons").style.position = 'fixed'; |
---|
| 119 | } |
---|
| 120 | </script> |
---|
| 121 | <!-- Social networking buttons --> |
---|
| 122 | |
---|
| 123 | <div id="breadcrumb"> |
---|
| 124 | <a href="../index.html">RGraph: Javascript charts and graph library</a> |
---|
| 125 | > |
---|
| 126 | <a href="./index.html">Examples</a> |
---|
| 127 | > |
---|
| 128 | Funnel chart |
---|
| 129 | </div> |
---|
| 130 | |
---|
| 131 | <h1>RGraph: <span>Javascript charts and graph library</span> - Funnel chart</h1> |
---|
| 132 | |
---|
| 133 | <script> |
---|
| 134 | if (RGraph.isIE8()) { |
---|
| 135 | document.write('<div style="background-color: #fee; border: 2px dashed red; padding: 5px"><b>Important</b><br /><br /> Internet Explorer 8 does not natively support the HTML5 canvas tag, so if you want to see the charts, you can either:<ul><li>Install <a href="http://code.google.com/chrome/chromeframe/">Google Chrome Frame</a></li><li>Use ExCanvas. This is provided in the RGraph Archive.</li><li>Use another browser entirely. Your choices are Firefox 3.5+, Chrome 2+, Safari 4+ or Opera 10.5+. </li></ul> <b>Note:</b> Internet Explorer 9 fully supports the canvas tag. Click <a href="http://support.rgraph.net/message/rgraph-in-internet-explorer-9.html" target="_blank">here</a> to see some screenshots.</div>'); |
---|
| 136 | } |
---|
| 137 | </script> |
---|
| 138 | |
---|
| 139 | <p> |
---|
| 140 | The funnel chart can be used to show stages in a sales or order process, from initial lead/contact through to actual sale. |
---|
| 141 | It works well if you have a diminishing process, like that shown below. It can show potential revenue in each stage, or |
---|
| 142 | like below, it can show actual numbers. It can also highlight potential problems in an organisations sales and/or order fulfillment |
---|
| 143 | processes. |
---|
| 144 | </p> |
---|
| 145 | |
---|
| 146 | <div> |
---|
| 147 | <div> |
---|
| 148 | <ul> |
---|
| 149 | <li><a href="../docs/funnel.html">Funnel charts API documentation</a></li> |
---|
| 150 | </ul> |
---|
| 151 | </div> |
---|
| 152 | |
---|
| 153 | <div style="text-align: center"> |
---|
| 154 | <canvas id="funnel1" width="400" height="400">[No canvas support]</canvas> |
---|
| 155 | <canvas id="funnel2" width="400" height="400">[No canvas support]</canvas> |
---|
| 156 | </div> |
---|
| 157 | </div> |
---|
| 158 | |
---|
| 159 | <div style="display: none"> |
---|
| 160 | <div id="tooltip_contact"><b>Initial contact</b><br />All potential cutomers were contacted and<br />interest was established.</div> |
---|
| 161 | <div id="tooltip_lead"><b>Established lead</b><br />Customers who were interested had their details<br />recorded and passed to the sales team.</div> |
---|
| 162 | <div id="tooltip_call"><b>Sales Call</b><br />Interested Customers were called by the<br />sales team.</div> |
---|
| 163 | <div id="tooltip_visit"><b>Site visit</b><br />The Customers site was visited by a representative<br />of the sales core.</div> |
---|
| 164 | <div id="tooltip_sale"><b>Sale agreed</b><br />A sale was finalised by the sales core.</div> |
---|
| 165 | </div> |
---|
| 166 | |
---|
| 167 | </body> |
---|
| 168 | </html> |
---|