Line Graphs

Line graphs can be used for:

The Line graphs is another commonly used graph type. Line graphs are useful when you want to show data trends. In a Line graph, data items are represented by points or symbols. Data items in the same series are connected to each other by a line so that you can see a trend in your data over a number of data categories. The categories of data become the scale indexes along the x-axis, while each series of data is represented by an individual line.

Note: The X-Y Line subtype of the X-Y Plot graph type looks very similar to a Line graph. However, it uses data differently. If your data is in X-Y pair data points you will want to use X-Y Line subtype of the X-Y Plot graph. Otherwise, you will probably want to use the standard Line graph described here.

Example 13.7 illustrates the use a Line graph.


Line graphs are in the Standard Data Class (see Chapter 12 for details). To create a Line graph with PopChart XML, create a Graph element and set its Type attribute to Line, as shown in the example below.

<Graph Name='graph' Type='Line'>