Example Graph DTD
This section contains example graph DTD for each of the chart type provided in EnterpriseOne. You can modify the code in these graph DTDs to alter how the chart displays information.
<?xml version='1.0' encoding="UTF-8"?>
<!ELEMENT Graph
(Footnote?,MarkerText?,O1Title?,Title?,Subtitle?,X1Axis?,Y1Axis?,Y1Reference⇒
Line?,Y1Title?,Y2Axis?,Y2Title?,LocalRelationalData)
<!--the graphName is the name of a pre-defined tempate to use-->
<!ATTLIST Graph
graphName CDATA #REQUIRED
<!-- Graph definition of the footnote -->
<!ELEMENT Footnote EMPTY>
<!ATTLIST Footnote
text CDATA #IMPLIED
visible (true | false) #IMPLIED
<!ELEMENT MarkerText (GraphFont?, X1ViewFormat?, Y1ViewFormat?, Y2ViewFormat?, ⇒
ZViewFormat?) >
<!-- MarkerText attributes:
markerTextPlace: where, in relation to the marker, the marker text appears;
outside max is above bar
on max edge is sitting on the bar
inside max is on the bar, near the top
inside min is on the bar, near the bottom
center is centered on the bar
custom lets you set the angle and radius
**next to attributes in effect only when markerTextPlace is MTP_CUSTOM**
markerTextAngleDefault: angle of the text, in degrees, measured from the
center of the marker
markerTextRadiusDefault: distance from the center of the marker, 0 - 100
-->
<!ATTLIST MarkerText
visible (true | false) #IMPLIED
fontSizeAbsolute (true | false) #IMPLIED
markerTextPlace (MTP_OUTSIDE_MAX | MTP_ON_MAXEDGE | MTP_INSIDE_MAX |
MTP_INSIDE_MIN | MTP_CENTER | MTP_CUSTOM) #IMPLIED
markerTextAngleDefault CDATA #IMPLIED
markerTextRadiusDefault CDATA #IMPLIED >
<!-- Title for the ordinal axis (O1Axis)-->
<!ELEMENT O1Title EMPTY>
<!ATTLIST O1Title
text CDATA #IMPLIED
visible (true | false) #IMPLIED
>
<!-- Graph definition of the title; appears in graph image -->
<!ELEMENT Title EMPTY>
<!ATTLIST Title
text CDATA #IMPLIED
visible (true | false) #IMPLIED
>
<!-- Graph definition of the subtitle; appears in graph image -->
<!ELEMENT Subtitle EMPTY>
<!ATTLIST Subtitle
text CDATA #IMPLIED
visible (true | false) #IMPLIED
>
<!-- Reference line for Y1-axis: includes up to 3 actual lines -->
<!ELEMENT Y1ReferenceLine (ReferenceLine*) >
<!-- Represents the actual line in ReferenceLine element -->
<!ELEMENT ReferenceLine EMPTY >
<!-- ReferenceLine attributes:
index: which line in this axis; 0, 1, or 2
text: description of reference line
value: where along the axis the line should appear
displayedInLegend: whether a key to the line appears in the legend
-->
<!ATTLIST ReferenceLine
index CDATA #REQUIRED
visible (true | false) #IMPLIED
lineWidth CDATA #IMPLIED
text CDATA #IMPLIED
value CDATA #IMPLIED
displayedInLegend (true | false) #IMPLIED
lineColor CDATA #IMPLIED
lineStyle (LS_SOLID | LS_DASH | LS_DOTTED | LS_DASH_DOT) #IMPLIED >
<!-- Title for the Y1-axis (left side); reads up -->
<!ELEMENT Y1Title EMPTY>
<!ATTLIST Y1Title
text CDATA #IMPLIED
visible (true | false) #IMPLIED
>
<!-- Title for the Y2-axis (right side); reads down -->
<!ELEMENT Y2Title EMPTY>
<!ATTLIST Y2Title
text CDATA #IMPLIED
visible (true | false) #IMPLIED
>
<!-- Relational data for local data source:
Graph builds a grid of data from this element and children -->
<!ELEMENT LocalRelationalData
(Row+)
>
<!ELEMENT Row EMPTY>
<!ATTLIST Row
columnKey CDATA #IMPLIED
dataValue CDATA #IMPLIED
rowKey CDATA #IMPLIED
>
<!-- ViewFormat specifies number formatting-->
<!ELEMENT ViewFormat EMPTY >
<!-- ViewFormat attributes
numberType: format numbers as currency or percent?
thousandSeparator: character for separating thousands
decimalSeparator: character for separating whole number from decimal
currencySymbol: currency symbol; numberType must be NUMTYPE_CURRENCY
leadingZero: display leading zeros?
decimalDigit: number of decimal digits to display
posNumFmt: format for positive numbers
negNumFmt: format for negative numbers
posCurFmt: format for positive currency
negCurFmt: format for negative currency
scaleFactor: how much to scale (abbreviate) numbers
scaleDownThousands: character(s) to use when numbers represent thousands
scaleDownMillions: character(s) to use when numbers represent millions
scaleDownBillions: character(s) to use when numbers represent billions
scaleDownTrillions: character(s) to use when numbers represent trillions
scaleDownQuadrillions: character(s) to use when numbers represent
quadrillions
javaDateFormat: Java date format
oracleDateFormat: Oracle date format
"used" attributes specify whether one of the above properties has
been explicitly set; used for merging when using rules
-->
<!ATTLIST ViewFormat
numberType (NUMTYPE_GENERAL | NUMTYPE_CURRENCY | NUMTYPE_PERCENT) #IMPLIED
thousandSeparator CDATA #IMPLIED
decimalSeparator CDATA #IMPLIED
currencySymbol CDATA #IMPLIED
leadingZero (true | false) #IMPLIED
decimalDigit CDATA #IMPLIED
posNumFmt (POS_NUMFMT_NUM | POS_NUMFMT_POS_NUM | POS_NUMFMT_NUM_POS ) #IMPLIED
negNumFmt (NEG_NUMFMT_OP_NUM_CP | NEG_NUMFMT_NEG_NUM | NEG_NUMFMT_NUM_NEG)⇒
#IMPLIED
posCurFmt (POS_CURFMT_CUR_NUM | POS_CURFMT_NUM_CUR |
POS_CURFMT_CUR_SPAC_NUM |POS_CURFMT_NUM_SPAC_CUR |
POS_CURFMT_POS_CUR_NUM | POS_CURFMT_CUR_NUM_POS |
POS_CURFMT_POS_NUM_CUR | POS_CURFMT_NUM_POS_CUR |
POS_CURFMT_NUM_CUR_POS | POS_CURFMT_POS_NUM_SPAC_CUR |
POS_CURFMT_POS_CUR_SPAC_NUM | POS_CURFMT_NUM_SPAC_CUR_POS )
#IMPLIED
negCurFmt (NEG_CURFMT_OP_CUR_NUM_CP | NEG_CURFMT_NEG_CUR_NUM |
NEG_CURFMT_CUR_NEG_NUM | NEG_CURFMT_CUR_NUM_NEG |
NEG_CURFMT_OP_NUM_CUR_CP | NEG_CURFMT_NEG_NUM_CUR |
NEG_CURFMT_NUM_NEG_CUR | NEG_CURFMT_NUM_CUR_NEG |
NEG_CURFMT_NEG_NUM_SPAC_CUR | NEG_CURFMT_NEG_CUR_SPAC_NUM |
NEG_CURFMT_NUM_SPAC_CUR_NEG ) #IMPLIED
scaleFactor (SCALEFACTOR_NONE | SCALEFACTOR_THOUSANDS |
SCALEFACTOR_MILLIONS | SCALEFACTOR_BILLIONS |
SCALEFACTOR_TRILLIONS | SCALEFACTOR_QUADRILLIONS ) #IMPLIED
scaleDownThousands CDATA #IMPLIED
scaleDownMillions CDATA #IMPLIED
scaleDownBillions CDATA #IMPLIED
scaleDownTrillions CDATA #IMPLIED
scaleDownQuadrillions CDATA #IMPLIED
javaDateFormat CDATA #IMPLIED
oracleDateFormat CDATA #IMPLIED
numberTypeUsed (true | false) #IMPLIED
thousandSeparatorUsed (true | false) #IMPLIED
decimalSeparatorUsed (true | false) #IMPLIED
currencySymbolUsed (true | false) #IMPLIED
leadingZeroUsed (true | false) #IMPLIED
decimalDigitUsed (true | false) #IMPLIED
posNumFmtUsed (true | false) #IMPLIED
negNumFmtUsed (true | false) #IMPLIED
posCurFmtUsed (true | false) #IMPLIED
negCurFmtUsed (true | false) #IMPLIED
scaleFactorUsed (true | false) #IMPLIED
scaleDownThousandsUsed (true | false) #IMPLIED
scaleDownMillionsUsed (true | false) #IMPLIED
scaleDownBillionsUsed (true | false) #IMPLIED
scaleDownTrillionsUsed (true | false) #IMPLIED
scaleDownQuadrillionsUsed (true | false) #IMPLIED
javaDateFormatUsed (true | false) #IMPLIED
oracleDateFormatUsed (true | false) #IMPLIED >
<!-- ViewFormats for different number values that can appear in marker
text and tooltip text -->
<!ELEMENT X1Axis (ViewFormat?) >
<!ELEMENT X1ViewFormat (ViewFormat) >
<!ELEMENT Y1Axis (ViewFormat?) >
<!ELEMENT Y1ViewFormat (ViewFormat) >
<!ELEMENT Y2Axis (ViewFormat?) >
<!ELEMENT Y2ViewFormat (ViewFormat) >
<!ELEMENT ZViewFormat (ViewFormat) >