Package tech.tablesaw.plotly.api
Class BubblePlot
- java.lang.Object
-
- tech.tablesaw.plotly.api.BubblePlot
-
public class BubblePlot extends Object
-
-
Constructor Summary
Constructors Constructor Description BubblePlot()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Figure
create(String title, String xTitle, double[] xCol, String yTitle, double[] yCol)
static Figure
create(String title, tech.tablesaw.api.Table table, String xCol, String yCol, String sizeCol)
create a bubble plot using column namesstatic Figure
create(String title, tech.tablesaw.api.Table table, String xCol, String yCol, String sizeColumn, String groupCol)
static Figure
create(String title, tech.tablesaw.columns.Column xColumn, tech.tablesaw.columns.Column yColumn, tech.tablesaw.api.NumericColumn sizeColumn, double[] color, Marker.SizeMode sizeMode, Double opacity)
create a bubble plot using more options including color/sizeMode/opacity
-
-
-
Method Detail
-
create
public static Figure create(String title, tech.tablesaw.api.Table table, String xCol, String yCol, String sizeColumn, String groupCol)
-
create
public static Figure create(String title, tech.tablesaw.columns.Column xColumn, tech.tablesaw.columns.Column yColumn, tech.tablesaw.api.NumericColumn sizeColumn, double[] color, Marker.SizeMode sizeMode, Double opacity)
create a bubble plot using more options including color/sizeMode/opacity- Parameters:
title
- plot titlexColumn
- non-nullable, column data for x-axisyColumn
- non-nullable, column data for y-axissizeColumn
- nullable, indicate the bubble sizecolor
- color for every data pointsizeMode
- checkMarker.SizeMode
opacity
- display opacity- Returns:
- bubble plot created from given parameters
-
create
public static Figure create(String title, tech.tablesaw.api.Table table, String xCol, String yCol, String sizeCol)
create a bubble plot using column names- Parameters:
title
- plot titletable
- sourceTable
to fetch plot datap pointsxCol
- non-nullable, column name for x-axisyCol
- non-nullable, column name for y-axissizeCol
- nullable, column name for bubble size- Returns:
- bubble plot created from given parameters
-
-