Package org.knowm.xchart
Class QuickChart
- java.lang.Object
-
- org.knowm.xchart.QuickChart
-
public final class QuickChart extends Object
A convenience class for making Charts with one line of code- Author:
- timmolter
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XYChart
getChart(String chartTitle, String xTitle, String yTitle, String[] seriesNames, double[] xData, double[][] yData)
Creates a Chart with multiple Series for the same X-Axis data with default stylestatic XYChart
getChart(String chartTitle, String xTitle, String yTitle, String seriesName, double[] xData, double[] yData)
Creates a Chart with default stylestatic XYChart
getChart(String chartTitle, String xTitle, String yTitle, String seriesName, List<? extends Number> xData, List<? extends Number> yData)
Creates a Chart with default style
-
-
-
Method Detail
-
getChart
public static XYChart getChart(String chartTitle, String xTitle, String yTitle, String seriesName, double[] xData, double[] yData)
Creates a Chart with default style- Parameters:
chartTitle
- the Chart titlexTitle
- The X-Axis titleyTitle
- The Y-Axis titleseriesName
- The name of the seriesxData
- An array containing the X-Axis datayData
- An array containing Y-Axis data- Returns:
- a Chart Object
-
getChart
public static XYChart getChart(String chartTitle, String xTitle, String yTitle, String[] seriesNames, double[] xData, double[][] yData)
Creates a Chart with multiple Series for the same X-Axis data with default style- Parameters:
chartTitle
- the Chart titlexTitle
- The X-Axis titleyTitle
- The Y-Axis titleseriesNames
- An array of the name of the multiple seriesxData
- An array containing the X-Axis datayData
- An array of double arrays containing multiple Y-Axis data- Returns:
- a Chart Object
-
getChart
public static XYChart getChart(String chartTitle, String xTitle, String yTitle, String seriesName, List<? extends Number> xData, List<? extends Number> yData)
Creates a Chart with default style- Parameters:
chartTitle
- the Chart titlexTitle
- The X-Axis titleyTitle
- The Y-Axis titleseriesName
- The name of the seriesxData
- A Collection containing the X-Axis datayData
- A Collection containing Y-Axis data- Returns:
- a Chart Object
-
-