public class ChartsUtil extends Object
Constructor and Description |
---|
ChartsUtil() |
Modifier and Type | Method and Description |
---|---|
static org.jfree.chart.JFreeChart |
createChart(org.jfree.data.xy.XYDataset dataset,
String title,
String xName,
String yName)
Creates a default XYLineChart JFreeChart
|
static org.jfree.chart.ChartPanel |
createChartPanel(org.jfree.data.xy.XYDataset dataset,
String title,
String xName,
String yName)
Creates a panel containing a XYLineChart.
|
public static org.jfree.chart.ChartPanel createChartPanel(org.jfree.data.xy.XYDataset dataset, String title, String xName, String yName)
ChartFactory.createXYLineChart(String, String, String, XYDataset, PlotOrientation, boolean, boolean, boolean)
dataset
- the dataset to usetitle
- the chart's titlexName
- the x axis's titleyName
- the y axis's titleChartFactory
,
ChartPanel
public static org.jfree.chart.JFreeChart createChart(org.jfree.data.xy.XYDataset dataset, String title, String xName, String yName)
dataset
- the dataset to usetitle
- the chart's titlexName
- the x axis's titleyName
- the y axis's title