| A chart engine implemented with JFreeChart.
This is the JFreeChart base chart engine implementation. All chart would
support drilldown by providing Area hot spots. Each Area would callback to
org.zkoss.zul.event.ChartAreaListener class that application developers
can do processing on each area.
Note that useful
org.zkoss.zul.ChartModel information is put in
Area's custom attribute Map so you can retrieve them by calling Area's
getAttribute(key) method and use them in drilldown function. Following is
the table of keys for different ChartModel.
Following is the explanation for each key:
- entity: entity is used to distinguish the differnt entities on a
chart. It might be TITLE, CATEGORY, DATA, LEGEND. The most important
entity might be DATA entity where the real chart data point is located.
For example, the DATA Area is each slice in a Pie chart.
- category: category name of the associated data.
- value: value of the associated data.
- series: series name of the associated data.
- x: x value of the XYModel
- y: y value of the XYModel
- date, open, high, low, close, volumn: data of the HiLoModel
See also jFreeChart.
author: henrichen since: 3.0.0 |