Difference between revisions of "Portlet XML Formatting"
Rmortensen (Talk | contribs) (→Chart XML Tags) |
Rmortensen (Talk | contribs) (→Report XML Tags) |
||
Line 69: | Line 69: | ||
* imageurl '''[Attributes:''' | * imageurl '''[Attributes:''' | ||
* alt=”alternate”] | * alt=”alternate”] | ||
+ | |||
+ | === Simple Example === | ||
+ | |||
+ | Example: | ||
+ | <columnlist> | ||
+ | <column name="*"> | ||
+ | <lever name="default"> | ||
+ | <threshold field="State" value="CA" type="string"> | ||
+ | <style><![CDATA[color: 0000FF;font-weight: bold;]]></style> | ||
+ | </threshold> | ||
+ | <threshold field="State" value="NY" type="string"> | ||
+ | <style><![CDATA[color: red;font-weight: bold;]]></style> | ||
+ | </threshold> | ||
+ | </lever> | ||
+ | </column> | ||
+ | <column name="State"> | ||
+ | <lever name="default"> | ||
+ | <threshold field="State" value="CA" type="string"> | ||
+ | <imageurl>/marvelit/images/CA.jpg</imageurl> | ||
+ | </threshold> | ||
+ | <threshold field="State" value="NY" type="string"> | ||
+ | <imageurl>/marvelit/images/NY.jpg</imageurl> | ||
+ | </threshold> | ||
+ | </lever> | ||
+ | </column> | ||
+ | </columnlist> | ||
== Report XML Examples == | == Report XML Examples == |
Revision as of 01:28, 27 September 2006
Contents
Chart XML Tags
On the Chart Portlet - there is a field to enter XML. The format of the XML is as follows:
marvelitchart [Attributes:
- percentvalues=”true|false” (pie charts only)]
value-axis [Attributes:
- low=”{number}”
- high=”{number}”
- ticks=”{number}”
- label=”text”
- include0=”true|false”]
category-axis [Attributes:
- low=”{number}”
- high=”{number}”
- ticks=”{number}”
- label=”text”
- angle=”true|false”]
section [Attributes:
- number=”{number}
- color=”#000000”
- explode=”{percent}”]
alt-section [Attributes:
- number=”{number}
- color=”#000000”]
columnlist (See Report XML)
Simple Example
<marvelitchart percentvalues="false">
<value-axis low="5" high="50" ticks="11" label="val label" include0="false"/>
<category-axis low="-1" high="10" ticks="2.5" label="cat label" angle="45"/>
<section number="0" color="#0000FF" explode=".30" />
<alt-section number="0" color="#0000FF" />
</marvelitchart>
Notes
- section.explode only applies to pie charts (2d and 3d)
- alt-section is for overlays
- The number field for section and alt-section are integers starting with 0
- include0 = false allows the base of the chart to be a high number. This is useful when all values are of a similarly high value.
Chart XML Examples
Report XML Tags
On the Report and Meter Portlet - there is a field to enter XML. The format of the XML is as follows:
columnformatlist column [Attributes:
- name=”columnname|number|*”]
lever [Attributes:
- name=”columnname|default”
- value=”lever value”]
threshold [Attributes:
- field=”columnname|number”
- value=”value”
- type=”string|date|number”]
- format (ex: $ ###.00)
- link (ex: http://www.marvelit.com/)
- style (css style name)
- imageurl [Attributes:
- alt=”alternate”]
Simple Example
Example: <columnlist> <column name="*"> <lever name="default"> <threshold field="State" value="CA" type="string"> <style><![CDATA[color: 0000FF;font-weight: bold;]]></style> </threshold> <threshold field="State" value="NY" type="string"> <style><![CDATA[color: red;font-weight: bold;]]></style> </threshold> </lever> </column> <column name="State"> <lever name="default"> <threshold field="State" value="CA" type="string"> <imageurl>/marvelit/images/CA.jpg</imageurl> </threshold> <threshold field="State" value="NY" type="string"> <imageurl>/marvelit/images/NY.jpg</imageurl> </threshold> </lever> </column> </columnlist>