Package io.keikaiex.util
Class JFreeChartHelper
java.lang.Object
io.keikaiex.util.JFreeChartHelper
Internal Use Only. Helper Utility class for handling Chart.
- Author:
- ashish
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic org.jfree.chart.JFreeChartdrawJFreeChart(SChart chartInfo) static StringgetChartType(SChart chartInfo) static FontgetCustomFont(String key) chart's font property value format: [NAME], [WEIGHT], [SIZE] e.g.static org.jfree.chart.plot.PlotOrientationgetOrientation(SChart chartInfo) static voidprepareAxis(org.jfree.chart.JFreeChart jfchart, SChart chartInfo) static org.zkoss.zul.ChartModelprepareCategoryModel(SChartData chartData) We treat those non-numeric data in a series as 0.static org.zkoss.zul.ChartModelprepareHiLoModel(SChartData chartData) static org.zkoss.zul.ChartModelpreparePieModel(SChartData chartData) static org.zkoss.zul.XYModelprepareXYModel(SChartData chartData) Scatter chart that uses XYModel has following characteristics: 1.static org.zkoss.zul.XYZModelprepareXYZModel(SChartData chartData) The bubble chart that use XYZModel has similar characteristics as scatter chart.
-
Constructor Details
-
JFreeChartHelper
public JFreeChartHelper()
-
-
Method Details
-
drawJFreeChart
-
getChartType
-
getOrientation
-
drawChart
-
prepareHiLoModel
-
prepareCategoryModel
We treat those non-numeric data in a series as 0. -
prepareXYModel
Scatter chart that uses XYModel has following characteristics: 1. It always has two value axes to show one set of numerical data along a horizontal (value) axis and another set of numerical values along a vertical (value) axis. 2. If X axis value is not numeric, we convert them to a default series with index, e.g. 1, 2, 3, 4...etc like Excel does.- Returns:
- data model for scatter chart
-
prepareXYZModel
The bubble chart that use XYZModel has similar characteristics as scatter chart. Its X axis always shows numerical data. If X axis value is not numeric, we convert them to a default series with index, e.g. 1, 2, 3, 4...etc like Excel does.- See Also:
-
preparePieModel
-
getCustomFont
chart's font property value format: [NAME], [WEIGHT], [SIZE] e.g. SansSerif, bold, 20- Parameters:
key-- Returns:
-
prepareAxis
-