O'Reilly logo

Learning jqPlot by Scott Gottreu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required