<dvt:markerText>

markerText marker text


Use the markerText tag to define the characteristics of marker text in a graph.

Relationship with other tags

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

The markerText tag can have the following child tags:

Example

The following example shows the XML for a markerText tag that puts marker text for the Y-Axis above the marker bar and specifies the number format for this text.

        <dvt:graph>
            <dvt:markerText visible="true" markerTextPlace="MTP_OUTSIDE_MAX">
                <dvt:graphFont name="SansSerif" size="10" color="#000000" bold="true" italic="false" underline="false"/>
                <dvt:y1Format>
                    <dvt:numberFormat posNumFmt="POS_NUMFMT_NUM_POS"/>
                </dvt:y1Format>
            </dvt:markerText>
        </dvt:graph>
        

Attributes

Name Type Supports EL? Description
id java.lang.String no Specifies the identifier for the component
markerTextPlace java.lang.String no Indicates where the marker text appears in relation to the marker. Valid values are:
  • MTP_CENTER - For bar graph, text appears centered on the bar. For non-bar graphs, text appears above the data point if the value is positive and below the data point if the value is negative.
  • MTP_INSIDE_MAX - For bar graph, text appears on the bar, near the top. For non-bar graphs, text appears below the data point if the value is positive and above the data point if the value is negative.
  • MTP_INSIDE_MIN - For bar graph, text appears inside on the bar, near the bottom. For non-bar graphs, text appears above the data point if the value is positive and below the data point if the value is negative.
  • MTP_OUTSIDE_MAX - (Default) For bar graph, text appears above the bar. For non-bar graphs, text appears above the data point if the value is positive and below the data point if the value is negative.
  • MTP_ON_MAX_EDGE - For bar graph, text sits on the bar. For non-bar graphs, text sits at the data point.
rendered boolean no

Indicates whether marker text is shown or hidden. Valid values are "true" and "false" (Default).