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

Mixing renderers


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:

  1. 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>
  2. Next, we create a method to pass back the revenue and conversions from the remote data source. After...