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

Creating a divisional dashboard


For the divisional dashboards, we only want to show data for the current user's division. Ideally, when someone logs in to the intranet, we would know his or her division. We could then pass that information into our JavaScript. None of that infrastructure is in place currently, so we will mock up the functionality in our static HTML files.

Thinking about each chart, all three of them will be bar charts. To get started, we create a new file and save it and then perform the following steps:

  1. We include all the plugins we have used previously for our bar charts as follows:

    <script src="../js/jqplot.categoryAxisRenderer.min.js"></script>
    <script src="../js/jqplot.barRenderer.min.js"></script>
    <script src="../js/jqplot.pointLabels.min.js"></script>
    <script src="../js/jqplot.canvasTextRenderer.min.js"></script>
    <script src="../js/jqplot.canvasAxisTickRenderer.min.js"></script>
    <script src="../js/jqplot...