public class JFreeChartEngine extends Object implements org.zkoss.zul.impl.ChartEngine, Serializable
Available in ZK PE and ZK EE.
This is the JFreeChart base chart engine implementation. All chart would
support drilldown by providing Area hot spots. Each Area would callback to
ChartAreaListener
class that application developers
can do processing on each area.
Note that useful 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.
model | key |
---|---|
PieModel | entity |
category | |
value | |
CategoryModel | entity |
series | |
category | |
value | |
XYModel | entity |
series | |
x | |
y | |
XYZModel | entity |
since 3.5.0 | series |
x | |
y | |
z | |
HiLoModel | entity |
series | |
date | |
open | |
high | |
low | |
close | |
volumn |
Following is the explanation for each key:
See also jFreeChart.
Constructor and Description |
---|
JFreeChartEngine() |
Modifier and Type | Method and Description |
---|---|
byte[] |
drawChart(Object data) |
protected String |
getGanttTaskTooltip(Date start,
Date end,
Number percent)
Returns data tooltiptext of the GanttTask.
|
protected boolean |
prepareJFreeChart(org.jfree.chart.JFreeChart jfchart,
org.zkoss.zul.Chart chart)
Developers with special needs can override this method to apply own rendering properties on the created JFreeChart.
|
protected boolean prepareJFreeChart(org.jfree.chart.JFreeChart jfchart, org.zkoss.zul.Chart chart)
jfchart
- the created JFreeChartchart
- the ZK chart component associated with this ChartEngine.public byte[] drawChart(Object data)
drawChart
in interface org.zkoss.zul.impl.ChartEngine
Copyright © 2020. All rights reserved.