Chart FX for Java Tag Library

The Chart FX for Java Tag Library is provided in a the same jar file, chartfx.jar, which includes the tag library and the tag handler. The tag library allows access to all properties and method that are available in the Chart FX for Java API.

IMPORTANT NOTE: Documentation of the Chart FX for Java Tag Library has been included in JavaDoc format, however, it is intended as a quick reference guide. For more information and detail about properties or methods, please refer to the Javadoc API.

To use the Tag Library, the following directive must be included at the top of each page:


<%@ taglib uri="/WEB-INF/lib/chartfx.jar" prefix="chartfx"%>

Additionally, the Tag library can be configured in the server web.xml file as follows:


<taglib>
<taglib-uri>/chartfxTags</taglib-uri>
<taglib-location>/WEB-INF/lib/chartfx.jar</taglib-location>
</taglib>

In which case, the directive in the jsp pages would be:


<%@ taglib uri="/chartfxTags" prefix="chartfx"%>

The following is a tag library sample:


<%@ taglib uri="/chartfxTags" prefix="chartfx"%>
<chartfx:chart height="280" width="450">
<chartfx:data COD="VALUES" series="1" points="4">
<chartfx:dataValue series="0" point="0" value="725000.00"/>
<chartfx:dataValue series="0" point="1" value="647000.00"/>
<chartfx:dataValue series="0" point="2" value="541000.00"/>
<chartfx:dataValue series="0" point="3" value="920000.00"/>
</chartfx:data>
<chartfx:axis index="2">
<chartfx:label index="0" label="Q1"/>
<chartfx:label index="1" label="Q2"/>
<chartfx:label index="2" label="Q3"/>
<chartfx:label index="3" label="Q4"/>
</chartfx:axis>
<chartfx:title index="0" text="2003 Sales">
<chartfx:font name="Arial" style="BOLD" size="14"/>
</chartfx:title>
<chartfx:imageBorder type="COLONIAL"/>
</chartfx:chart>