Summary

Tag name: <dvt:graphFont>

Use the graphFont tag to format fonts in graph components that display text.

Relationship with other tags

The graphFont tag is a child tag of the following tags:

  • Title component tags
    • legendText
    • graphFootnote
    • graphSubtitle
    • graphTitle
    • o1Title
    • x1Title
    • y1Title
    • y2Title
    • PieLabel
  • Label component tags
    • markerText
    • o1TickLabel
    • x1TickLabel
    • y1TickLabel
    • y2TickLabel
    • annotation

Example

The following example shows the XML for a graphFont tag that formats the fonts for a graph footnote.

   <dvt:graph> 
      <dvt:graphFootnote horizontalAlignment="LEFT" text="This is the footnote" visible="true"> 
         <dvt:graphFont name="SansSerif" size="10" color="#000000" bold="false" italic="false" underline="false"/> 
      </dvt:graphFootnote>
   </dvt:graph>
   

Attributes

Name Type Supports EL? Description
id java.lang.String no Specifies the identifier for the component
color java.lang.String yes Use to indicate the color of the font in RGB hexadecimal. The example color="#000000" specifies black color. This color property takes 6 or 8 digit hex as input. When 8 digit hex is used, the first 2 digits represent transparency, otherwise the color is opaque.
name java.lang.String yes Use to specify the name of the font. For example: name="SansSerif".
size int yes Use to specify the size of the font.
bold boolean yes Use to indicate whether the font is bold. Valid values are true or false (Default).
italic boolean yes Use to indicate whether the font is italic. Valid values are true or false (Default).
underline boolean yes Use to indicate whether the font is underlined. Valid values are true or false (Default).