O'Reilly logo

Learning jqPlot by Scott Gottreu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using objects to piece together our chart

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.

  1. We add the dateAxisRenderer, barRenderer, and canvas plugin files. We also make sure to add functions.js and themes.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> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required