Class QuickChart
java.lang.Object
org.knowm.xchart.QuickChart
A convenience class for making Charts with one line of code
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic XYChartgetChart(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 XYChartgetChart(String chartTitle, String xTitle, String yTitle, String seriesName, double[] xData, double[] yData) Creates a Chart with default stylestatic XYChartgetChart(String chartTitle, String xTitle, String yTitle, String seriesName, List<? extends Number> xData, List<? extends Number> yData) Creates a Chart with default style
-
Field Details
-
WIDTH
private static final int WIDTH- See Also:
-
HEIGHT
private static final int HEIGHT- See Also:
-
-
Constructor Details
-
QuickChart
private QuickChart()private Constructor
-
-
Method Details
-
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
-