<dvt:sliceLabel>

sliceLabel slice label


Use the sliceLabel tag to specify the characteristics of the labels that describes slices of a pie or ring graph. Each slice represents a data value.

Relationship with other tags

The sliceLabel tag must be a child of either the graph or pieGraph component.

The sliceLabel tag can have the following child tags:

Example

The following example shows the XML for a sliceLabel tag.

    
<dvt:graph <dvt:sliceLabel textType="LD_PERCENT"/> </dvt:graph>

Attributes

Name Type Supports EL? Description
id java.lang.String no Specifies the identifier for the component
textType java.lang.String no

Specifies the type of contents to appear in a slice label. Valid values are:

  • LD_TEXT - Slice labels contain text only.
  • LD_VALUE - Slice labels contain a value.
  • LD_PERCENT - Slice labels contain the percent that the slice represents in the graph.
  • LD_TEXT_PERCENT - Slice labels contain both text and percent.
rendered boolean no Use to indicate whether the slice label is rendered. Valid values are "true" or "false".