Like the Bar chart, this is one of the most versatile chart types. It is similar, but can indicate chronological data better. It's good if, for example, you want to illustarate sales figures over a year (or any period of time). You'll then be able to easily see whether sales are going up, down or are stagnant. It will also become apparent which months are busier than others. By using multiple lines you can add multiple sets of data (eg two or more years of figures) to your chart. You can customise this chart by stipulating it as being filled, having drop shadows, keys, having the X axis in the centre, different colours, different tickmark styles and tooltips etc.
The first graph uses external DIVs for the tooltip contents. The DIVs are at the bottom of this page (they're set not to be visible). Using external DIVs for tooltips can make maintenance easier.
A sparkline: |
|
Multiple sets of data in this case are achieved by using two graphs, drawn on the same canvas.
Essentially the second graph is drawn on top of the first. The two graph objects are line13
and line14 and you can see the code by reviewing the source of this page.
|
|