<dvt:legendTitle>

legendTitle legend title


Specifies the characteristics and text of the title used in the graph's legend.

Relationship with other tags

The legendTitle 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 legendTitle tag can have the following child tag: graphFont.

Example

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

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

Attributes

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 title. Valid values are:
  • CENTER
  • LEFT
  • RIGHT
  • LEADING
rendered boolean yes

Indicates whether text is to be visible. Valid values are "true" (Default) and "false"

text java.lang.String yes Specifies text for the legend title.