Book Image

Learning jqPlot

By : Scott Gottreu
Book Image

Learning jqPlot

By: Scott Gottreu

Overview of this book

Table of Contents (19 chapters)
Learning jqPlot
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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>
    <script src="../js/themes.js"></script>
    <script>
    $(document).ready(function(){
  2. Next, we create dataSeriesObj to hold the options for each series. Instead of creating our...