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 9. Showing Real-time Data with Our Charts

Up to this point, most of our charts used static data stored within our HTML files. We made some interactive charts where we reloaded the data, but we had to reload the entire page. There are two methods in jqPlot: redraw and replot. These methods allow us to rebuild our charts without reloading the page.

In this chapter, we will cover the following topics:

  • Creating a meter gauge chart showing current Wi-Fi users for a particular store
  • Using the replot method to refresh the number of Wi-Fi users at set intervals
  • Using the replot method to change the dataset our chart is using and update the chart accordingly
  • Using replot to dynamically build our chart, based on the data received from the remote data ...

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