Package tech.tablesaw.plotly
Class Plot
- java.lang.Object
-
- tech.tablesaw.plotly.Plot
-
public class Plot extends Object
Displays plots in a development setting, by exporting a file containing the HTML and Javascript, and then opening the file in the default browser on the developer's machine.
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
DEFAULT_DIV_NAME
protected static String
DEFAULT_OUTPUT_FILE
protected static String
DEFAULT_OUTPUT_FILE_NAME
protected static String
DEFAULT_OUTPUT_FOLDER
-
Constructor Summary
Constructors Constructor Description Plot()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static File
defaultFile()
protected static File
randomFile()
protected static String
randomizedFileName()
static void
show(String html, File outputFile)
Opens the default browser on the given HTML page.static void
show(Figure figure)
static void
show(Figure figure, File outputFile)
static void
show(Figure figure, String divName)
static void
show(Figure figure, String divName, File outputFile)
-
-
-
Field Detail
-
DEFAULT_DIV_NAME
protected static final String DEFAULT_DIV_NAME
- See Also:
- Constant Field Values
-
DEFAULT_OUTPUT_FILE
protected static final String DEFAULT_OUTPUT_FILE
- See Also:
- Constant Field Values
-
DEFAULT_OUTPUT_FILE_NAME
protected static final String DEFAULT_OUTPUT_FILE_NAME
- See Also:
- Constant Field Values
-
DEFAULT_OUTPUT_FOLDER
protected static final String DEFAULT_OUTPUT_FOLDER
- See Also:
- Constant Field Values
-
-
Method Detail
-
show
public static void show(String html, File outputFile)
Opens the default browser on the given HTML page. This is a convenience method for anyone who wants total control over the HTML file containing one or more plots, but still wants to use the mechanism for opening the default browser on it.- Parameters:
html
- An arbitrary HTML page, it doesn't even need plotsoutputFile
- The file where the page will be written
-
show
public static void show(Figure figure)
-
defaultFile
protected static File defaultFile()
-
randomFile
protected static File randomFile()
-
randomizedFileName
protected static String randomizedFileName()
-
-