The first parameter used is
url
. This is the URL of the remote data source. The next parameter isplot
, which is a copy of the jqPlot object we created. The final parameter isoptions
, which is a hash of options we can pass in.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.
We pass the name of the function used to retrieve our remote data.
We need to rank our data series from largest to smallest so that the largest ones do not cover all the other series.
For whatever series we want to show a trend line for, we will create a
trendline
property and set theshow
property totrue
.
Learning jqPlot
By :
Learning jqPlot
By:
Overview of this book
Table of Contents (19 chapters)
Learning jqPlot
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Getting Started
More Line Charts, Area Charts, and Scatter Plots
Bar Charts and Digging into Data
Horizontal and Stacked Bar Charts
Pie Charts and Donut Charts
Spice Up Your Charts with Animation, Tooltips, and Highlighting
Stock Market Charts – OHLC and Candlestick Charts
Bubble Charts, Block Plots, and Waterfalls
Showing Real-time Data with Our Charts
Beautifying and Extending Your Charts
Bringing it All Together
Answers
Index
Customer Reviews