public class JFreeChartHelper extends Object
Constructor and Description |
---|
JFreeChartHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
drawChart(org.zkoss.zul.Chart chart,
SChart chartInfo) |
static org.jfree.chart.JFreeChart |
drawJFreeChart(SChart chartInfo) |
static String |
getChartType(SChart chartInfo) |
static Font |
getCustomFont(String key)
chart's font property value format: [NAME], [WEIGHT], [SIZE] e.g.
|
static org.jfree.chart.plot.PlotOrientation |
getOrientation(SChart chartInfo) |
static void |
prepareAxis(org.jfree.chart.JFreeChart jfchart,
SChart chartInfo) |
static org.zkoss.zul.ChartModel |
prepareCategoryModel(SChartData chartData)
We treat those non-numeric data in a series as 0.
|
static org.zkoss.zul.ChartModel |
prepareHiLoModel(SChartData chartData) |
static org.zkoss.zul.ChartModel |
preparePieModel(SChartData chartData) |
static org.zkoss.zul.XYModel |
prepareXYModel(SChartData chartData)
Scatter chart that uses XYModel has following characteristics:
1.
|
static org.zkoss.zul.XYZModel |
prepareXYZModel(SChartData chartData)
The bubble chart that use XYZModel has similar characteristics as scatter chart.
|
public static org.jfree.chart.JFreeChart drawJFreeChart(SChart chartInfo)
public static org.jfree.chart.plot.PlotOrientation getOrientation(SChart chartInfo)
public static void drawChart(org.zkoss.zul.Chart chart, SChart chartInfo)
public static org.zkoss.zul.ChartModel prepareHiLoModel(SChartData chartData)
public static org.zkoss.zul.ChartModel prepareCategoryModel(SChartData chartData)
public static org.zkoss.zul.XYModel prepareXYModel(SChartData chartData)
public static org.zkoss.zul.XYZModel prepareXYZModel(SChartData chartData)
prepareXYModel(SChartData)
public static org.zkoss.zul.ChartModel preparePieModel(SChartData chartData)
public static Font getCustomFont(String key)
key
- public static void prepareAxis(org.jfree.chart.JFreeChart jfchart, SChart chartInfo)
Copyright © 2020. All rights reserved.