As we finish our first experiment, you mention that you've found the revenue numbers for the last 7 days. We decide that it will be best if we can show the dates on the x axis and not use arbitrary numbers.
We will need to make use of one of the renderers available in jqPlot. A renderer extends the basic functionality of jqPlot. Some renderers take the data and render it in different chart types. Other renderers format text in different ways. For our next chart, we will use
dateAxisRenderer, which will take our human-readable dates and convert them into values for jqPlot to render:
dateAxisRenderer.jsfile in our HTML, as shown in the following code:
<script src="../js/jqplot.dateAxisRenderer.min.js"></script> ...