We both sit back a bit exhausted. That was a lot of work but now is when we'll see the pay-off. With all these functions created, we start with the stacked bar chart showing total revenue for each division. We decide to start from scratch with our HTML since we are completely changing how we build our chart.
We add the
dateAxisRenderer
,barRenderer
, andcanvas
plugin files. We also make sure to addfunctions.js
andthemes.js
:<script src="../js/jqplot.dateAxisRenderer.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/functions.js"></script> <script src="../js/themes.js"></script> <script> $(document).ready(function(){
Next, we create
dataSeriesObj
to hold the options for each series. Instead of creating our...