10. Trinidad Core Tag Reference
Contents > Trinidad Core Tag Reference > tr:chart
tr:chart |
|
The tr:chart tag is used to display data in the format of various types of charts. See the type attribute for a full list of possible chart types.
Example
<tr:chart type="funnel" value="#{testBean.chartModel}" />
Sample Bar Chart
|
Tag Attributes
| XMajorGridLineCount |
Text |
| |
| The XMajorGridLineCount attribute sets the number of vertical major grid lines displayed in the chart. The default is -1 and the grid lines are based on the groupLabels in the chart model. |
| YMajorGridLineCount |
Text |
| |
| The YMajorGridLineCount attribute sets the number of horizontal major grid lines displayed in the chart. The default is 3. |
| YMinorGridLineCount |
Text |
| |
| The YMinorGridLineCount attribute sets the number of grid lines displayed within a major grid section. The default is -1 and the grid lines vary based on chart type. This attribute is only used for gauge charts with a value of 3. |
| animationDuration |
Text |
| |
| The animationDuration attribute sets the duration in milliseconds of the animation. The default is 1000 milliseconds. Turn off animation by setting this attribute to 0. |
| attributeChangeListener |
Text |
| |
| The attributeChangeListener attribute contains the reference to a method that is invoked when the renderer changes a property without the application’s request. |
| binding |
Expression |
| |
| The value-binding expression linking this component tag to a backing bean property. |
| chartDrillDownListener |
Text |
| |
| The chartDrillDownListener attribute sets the method to a drill down listener that takes a org.apache.myfaces.trinidad.event.ChartDrillDownEvent. |
| gradientsUsed |
Boolean |
| |
| The gradientsUsed attribute set to "true" by default. If set to "false", then the charts appear with a shaded background. |
| id |
Text |
| |
| The unique identifier value for this component. The value must be unique within the closest naming container. |
| inlineStyle |
Text |
| |
| The inlineStyle attribute contains inline style information, such as background color. |
| legendPosition |
Enumerated |
| |
| The legendPosition attribute sets the position of the legend. The default is "bottom". Valid values are "bottom", "start" (left), "end" (right) and "none". The value "none" turns legends off. |
| maxPrecision |
Text |
| |
| The maxPrecision attribute sets the maximum precision of the numbers displayed on the y axis, or x axis on horizontal charts. The default is 0. |
| partialTriggers |
Text |
| |
| The partialTriggers attribute sets the ids of components that cause a partial update. Use single colon for components that are in naming containers and multiple colons to search through parent and grandparent containers. |
| perspective |
Boolean |
| |
| The perspective attribute specifies if the chart is drawn with a perspective (2.5D). The default value for this attribute is #{true}. |
| rendered |
Boolean |
| |
| A value-binding expression that evaluates to a Boolean condition indicating if this component should be rendered. |
| shortDesc |
Text |
| |
| The shortDesc attribute displays help text you hover over the component. |
| styleClass |
CSS Class |
| |
| The styleClass attribute sets the CSS class to apply to this component when it is rendered. |
| templateSource |
Text |
| |
| The templateSource attribute sets the URI for the template source. Templates can be used to change the look and feel or the backgoung of the charts. |
| type |
Enumerated |
| |
| The type attribute sets the type of chart to display. Valid values are verticalBar horizontalBar stackedVerticalBar stackedHorizontalBar pie area stackedArea line barLine XYLine scatterPlot radar radarArea funnel circularGauge semiCircularGauge. |
| value |
Text |
| |
| The value attribute sets the current value for this component. |
|