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

Chapter 2, More Line Charts, Area Charts, and Scatter Plots


  1. The first parameter used is url. This is the URL of the remote data source. The next parameter is plot, which is a copy of the jqPlot object we created. The final parameter is options, which is a hash of options we can pass in.

  2. JSONP runs asynchronously and jqPlot runs synchronously. jqPlot will finish building the chart before the data is returned and will, therefore, not have any data displayed.

  3. We pass the name of the function used to retrieve our remote data.

  4. We need to rank our data series from largest to smallest so that the largest ones do not cover all the other series.

  5. For whatever series we want to show a trend line for, we will create a trendline property and set the show property to true.