display-zeros attribute

Type:boolean
Inherited:no
Used By:piegraph
Default:false

This attribute determines whether a slice in a Piegraph that has a value of zero is displayed or not. By "displayed" we only mean is included in the key, as obviously a zero-width slice is not going to have any substance in the graph itself.

The first PieGraph below will have three items in the key, the second only two.

<piegraph width="100" height="100" display-zeros="true">
  <gdata name="apples" value="20"/>
  <gdata name="oranges" value="30"/>
  <gdata name="kumquats" value="0"/>
</piegraph>

<piegraph width="100" height="100">
  <gdata name="apples" value="20"/>
  <gdata name="oranges" value="30"/>
  <gdata name="kumquats" value="0"/>
</piegraph>