With all our ideas fleshed out, we are ready to begin building our chart comparing social media conversions to monthly revenue. We can use the options from our line chart we created for the VP dashboard earlier. We create a new file and begin building our new chart as follows:
We start by adding all the necessary plugin files as follows:
<script src="../js/jqplot.categoryAxisRenderer.min.js"></script> <script src="../js/jqplot.barRenderer.min.js"></script> <script src="../js/jqplot.canvasTextRenderer.min.js"></script> <script src="../js/jqplot.canvasAxisTickRenderer.min.js"></script> <script src="../js/jqplot.canvasAxisLabelRenderer.min.js"></script> <script src="../js/jqplot.trendline.min.js"></script> <script src="../js/functions.js"></script> <script src="../js/themes.js"></script>
Next, we create a method to pass back the revenue and conversions from the remote data source. After...