Tag name: <dvt:legendText>

Use the legendText tag to identify a series of data in a graph legend. Text is associated with each marker in the legend.

Relationship with other tags

The legendText tag must be a child of one of the following components: Advanced graph, areaGraph, barGraph, bubbleGraph, comboGraph, dualYBarGraph, dualYComboGraph, dualYLineGraph, funnelGraph, horizontalBarGraph, horizontalStackedBarGraph, pieGraph, paretoGraph, lineGraph, radarGraph, scatterGraph, stackedBarGraph, stockCandleGraph, stockGraph.

The legendText tag can have the following child tag: graphFont tag.


The following example shows the XML for a legendText tag that specifies alignment of text on the left and provides the characteristics of the font to be used.

      <dvt:legendText horizontalAlignment="LEFT">
         <dvt:graphFont name="SansSerif" size="10" color="#000000" bold="false" italic="false" underline="false"/>


Name Type Supports EL? Description
id java.lang.String no Specifies the identifier for the component
horizontalAlignment java.lang.String yes Indicates where to position the legend text relative to the associated marker. Valid values are:
  • LEFT