Tag name: <dvt:sliceLabel>

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, funnelGraph, or pieGraph component.

The sliceLabel tag can have the following child tags:

  • graphFont
  • numberFormat


The following example shows the XML for a sliceLabel tag.

      <dvt:sliceLabel textType="LD_PERCENT"/>


Name Type Supports EL? Description
id java.lang.String no Specifies the identifier for the component
textType java.lang.String yes 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 - (Default) Slice labels contain the percent that the slice represents in the graph.
  • LD_TEXT_PERCENT - Slice labels contain both text and percent.
rendered boolean yes Use to indicate whether the slice label is rendered. Valid values are "true" (Default) or "false".