o
Tag chart


The Chart component is used to present data in a graphical form enabling the user to see trends, comparisons, or percentage of the whole. The component constitutes the entire chart area, including the chart itself and all its elements (title, legend, background). The component is based on the JFreeChart engine and exposes a friendly API with JSF-specific features and enhancements. Child tags: pieChartView, lineChartView, barChartView, chartTitle, chartLegend.


Tag Information
Tag Classorg.openfaces.taglib.jsp.chart.ChartJspTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredBinding TypeELDefaultDescription
bindingfalsejavax.el.ValueExpression
(must evaluate to org.openfaces.component.chart.Chart)
onlynullA value-binding expression that associates the Chart component with a backing bean property.
heightfalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
truenullThe height of the Chart component. Can be specified in any units (px, mm, em, etc.).
idfalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
falsenullThe component identifier.
legendVisiblefalsejavax.el.ValueExpression
(must evaluate to boolean)
falsetrueA flag that indicates whether or not the chart legend is visible.
modelfalsejavax.el.ValueExpression
(must evaluate to org.openfaces.component.chart.ChartModel)
onlynullA set of data to be used for processing and displaying in the chart.
renderedfalsejavax.el.ValueExpression
(must evaluate to boolean)
truetrueA flag that indicates whether or not the component is visible.
stylefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
truenullA style for the entire Chart component. Note that this attribute is applied to the component's image itself (the appropriate HTML tag on a page), so you shouldn't specify font and color properties in this attribute. Use textStyle attribute for specifying such properties instead.
styleClassfalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
truenullA CSS class name for the entire Chart component. Note that this attribute is applied to the component's image itself (the appropriate HTML tag on a page), so you shouldn't specify font and color properties in this attribute. Use textStyle attribute for specifying such properties instead.
textStylefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
truenullA style that is used when generating an image for the Chart component. It should be used for specifying font and color properties. See also the style and styleClass attributes.
titleTextfalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
truenullText that is shown as the chart title above the chart.
viewfalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
truenullSpecifies the chart type. There are three types of chart available: pie, bar, line.
Available values are:
"line"
"bar"
"pie"
widthfalsejavax.el.ValueExpression
(must evaluate to int)
truenullThe width of the Chart component. Can be specified in any units (px, mm, em, etc.).

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.