Package org.knowm.xchart
Class CSVImporter
- java.lang.Object
-
- org.knowm.xchart.CSVImporter
-
public class CSVImporter extends Object
This class is used to create a Chart object from a folder containing one or more CSV files. The parent folder's name becomes the title of the chart. Each CSV file in the folder becomes a series on the chart. the CSV file's name becomes the series' name.- Author:
- timmolter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CSVImporter.DataOrientation
static class
CSVImporter.SeriesData
-
Constructor Summary
Constructors Constructor Description CSVImporter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XYChart
getChartFromCSVDir(String path2Directory, CSVImporter.DataOrientation dataOrientation, int width, int height)
static XYChart
getChartFromCSVDir(String path2Directory, CSVImporter.DataOrientation dataOrientation, int width, int height, Styler.ChartTheme chartTheme)
static CSVImporter.SeriesData
getSeriesDataFromCSVFile(String path2CSVFile, CSVImporter.DataOrientation dataOrientation)
-
-
-
Method Detail
-
getChartFromCSVDir
public static XYChart getChartFromCSVDir(String path2Directory, CSVImporter.DataOrientation dataOrientation, int width, int height, Styler.ChartTheme chartTheme)
- Parameters:
path2Directory
-dataOrientation
-width
-height
-chartTheme
-- Returns:
-
getSeriesDataFromCSVFile
public static CSVImporter.SeriesData getSeriesDataFromCSVFile(String path2CSVFile, CSVImporter.DataOrientation dataOrientation)
-
getChartFromCSVDir
public static XYChart getChartFromCSVDir(String path2Directory, CSVImporter.DataOrientation dataOrientation, int width, int height)
- Parameters:
path2Directory
-dataOrientation
-width
-height
-- Returns:
-
-