JViews Chart
Tag chartView


Chart View Faces Component

The chart view faces component exposes an IlvChart as a JavaServer Faces component. It interfaces with a servlet that generates images from the IlvChart, and handles interactions with the component.

Usage

<jvcf:chartView
      id="chart"
      data="data/chart.icpr"
      style="width:800px;height:400px"
      waitingImage="data/images/wait.gif"
      resizable="true"
      imageFormat="PNG"/>

DHTML - JavaScript Types

IlvChartViewProxy

JSF Component Class

IlvChartDHTMLView



Tag Information
Tag Classilog.views.chart.faces.dhtml.taglib.IlvChartViewTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameChart View

Attributes
NameRequiredRequest-timeTypeDescription
backgroundColorfalsefalsejava.lang.StringThe background color of the generated image.
beforeSessionExpirationHandlerfalsefalsejava.lang.StringThe JavaScript code that will be called when the session is about to expire. For example to keep the session alive set this attribute to view.updateImage().
bindingfalsefalsejava.lang.StringThe value binding expression linking this component to a property in a backing bean. If this attribute is set, the tag does not create the component itself but retrieves it from the bean property. This attribute must be a value binding.
chartfalsefalsejava.lang.StringAn optional ILOG JViews chart to display. This must be a value reference returning an IlvChart component.
componentfalsefalsejava.lang.StringThe component to display. Valid values are chart or area. The default value is chart. In chart mode, the entire chart is displayed including the legend. In area mode, the legend is not displayed.
datafalsefalsejava.lang.StringThe data to display: icpr project, XML file, IlvDataSource instance value binding, ID of a data source component.
dataSourcefalsefalsejava.lang.StringThe binding to a predefined data source. See thedataSourcecomponent for more information.
dataSourceIdfalsefalsejava.lang.StringThe ID of a predefined data source. See thedataSourcecomponent for more information.
errorMessagefalsefalsejava.lang.StringThe message displayed when an error occurs while the image is being loaded.
generateImageMapfalsefalsejava.lang.StringTells the component whether it should generate an image map. The image map itself is provided by the servlet that generates the image. To be active the image map has to be visible.
heightfalsefalsejava.lang.StringThe desired height in pixels of the component. Another way to set the size of the component is to use the style attribute. This value overrides values set with the style attribute.
idfalsefalsejava.lang.StringThe ID of this component.
imageFormatfalsefalsejava.lang.StringThe desired format of the image generated by the servlet. The format can be JPEG or PNG.
imageMapGeneratorfalsefalsejava.lang.StringThe value binding expression of the image map generator. This generator is invoked if the attributegenerateImageMapis set totrue.
imageMapGeneratorClassfalsefalsejava.lang.StringThe image map generator class name. This property is used if and only if the imageMapGenerator property is not set.
imageMapVisiblefalsefalsejava.lang.StringShows or hides the image map. See thegenerateImageMapattribute. When the image map is shown, the current interactor set on the view is disabled.
interactorfalsefalsejava.lang.StringThe binding to the default interactor to set on the view.
interactorIdfalsefalsejava.lang.StringThe ID of the default interactor to set on the view.
keepVisibleWindowfalsefalsejava.lang.StringWhether to keep or not the current visible window between two JSF requests. The default value is false
messageBoxfalsefalsejava.lang.StringThe binding to a message box component used to display messages.
messageBoxIdfalsefalsejava.lang.StringThe ID of a message box component used to display messages.
onCapabilitiesLoadedfalsefalsejava.lang.StringAn optional JavaScript handler called when the capabilities of the component are loaded. In this code the 'view' variable can be used and represent the DHTML view instance. 'view.JSFRef' represents the JavaScript proxy of the JSF component.
onImageLoadedfalsefalsejava.lang.StringAn optional JavaScript handler called when the image is loaded. In this code the 'view' variable can be used and represent the DHTML view instance. 'view.JSFRef' represents the JavaScript proxy of the JSF component.
projectfalsefalsejava.lang.StringThe URL to a Charts Designer project.
resizablefalsefalsejava.lang.StringSets whether the chart view can be resized or not.
servletfalsefalsejava.lang.StringThe URL or the class name of the servlet that provides the image to display.
stylefalsefalsejava.lang.StringCSS style(s) to be applied when this component is rendered.
styleClassfalsefalsejava.lang.StringSpace separated list of CSS style class(es) to be applied when this element is rendered.
styleSheetfalsefalsejava.lang.StringThe URL of a CSS file used to style the chart.
styleSheetsfalsefalsejava.lang.StringThe comma separated URLs of the CSS files used to style the chart.
typefalsefalsejava.lang.StringThe type of the chart. The type must be one of the following values: Cartesian, polar, radar or pie.
updateIntervalfalsefalsejava.lang.StringThe interval in seconds between two automatic updates of the image. 0 disables the feature.
waitingImagefalsefalsejava.lang.StringThe URL of the image displayed when the component is waiting for a server response. The image may be an animated GIF.
widthfalsefalsejava.lang.StringThe desired width in pixels of the component. Another way to set the size of the component is to use the style attribute. This value overrides values set with the style attribute.
XZoomFactorfalsefalsejava.lang.StringSince JViews 6.5 this attribute is deprecated. Use the attribute xZoomFactor instead.
xZoomFactorfalsefalsejava.lang.StringThe zoom factor in x applied by the zoom actions on the chart.
YZoomFactorfalsefalsejava.lang.StringSince JViews 6.5 this attribute is deprecated. Use the attribute yZoomFactor instead.
yZoomFactorfalsefalsejava.lang.StringThe zoom factor in y applied by the zoom actions on the chart.

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.   Documentation homepage.