We looked at a new chart type that is similar to a gauge on a car dashboard. We also used the redraw
and replot
methods to update this chart at intervals. We changed the time frame for our stock chart and updated the data source being used. We created our ticks
option based on remote data and updated our chart using replot
. We also used this same functionality to change the trend line displayed based on the selected value in our drop-down menu.
In the next chapter, we'll look at some of the styling options that can be set using CSS and other options that can only be set via JavaScript. We will also look at creating themes for jqPlot using JavaScript objects.