Subtypes

Listed below are the Bar graph subtypes.

Vertical Bar

The graph depicted in Example 13.1 is a Vertical bar graph (i.e. the bars are vertical).

If you don't specify a subtype for a Bar graph in PopChart XML, PopChart Server will assume that it is of the Vertical subtype. Or, to specify the Vertical subtype explicitly, set the SubType attribute of your Graph element to Vertical, as in the example below.

<Graph Name='graph' Type='Bar' SubType='Vertical'>

Horizontal Bar

Horizontal Bar graphs are similar to Vertical Bar graphs, the only difference being that they are rotated 90 degrees. If you have long category or data labels and you don't want to rotate the labels, a Horizontal Bar graph may be more convenient than a Vertical Bar graph.

Example 13.2 gives an example of a Horizontal Bar graph.


To create the Horizontal Bar graph in PopChart XML, set the SubType attribute of your Graph element to Horizontal, as in the example below.

<Graph Name='graph' Type='Bar' SubType='Horizontal'>

Vertical Stacked Bar

The Vertical Stacked bar subtype is discussed in the "Stacked Bar Graphs" section.

Horizontal Stacked Bar

The Vertical Stacked bar subtype is discussed in the "Stacked Bar Graphs" section.