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.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.226.109