Package tech.tablesaw.plotly.components
Class Figure
- java.lang.Object
-
- tech.tablesaw.plotly.components.Figure
-
public class Figure extends Object
Plotly's graph description places attributes into two categories: traces (objects that describe a single series of data in a graph like Scatter or Heatmap) and layout attributes that apply to the rest of the chart, like the title, xaxis, or annotations).Figure combines the two parts, associating one or more traces with a layout. If the layout is null a default layout is provided.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Figure.FigureBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
asJavascript(String divName)
protected void
buildContext(String divName)
static Figure.FigureBuilder
builder()
String
divString(String divName)
protected String
eventHandlerFunction(String targetName, String divName)
Config
getConfig()
Map<String,Object>
getContext()
EventHandler[]
getEventHandlers()
Layout
getLayout()
Trace[]
getTraces()
protected String
plotFunction(String divName)
void
setConfig(Config config)
void
setEventHandlers(EventHandler... handlers)
void
setLayout(Layout layout)
void
setTraces(Trace... data)
-
-
-
Method Detail
-
getLayout
public Layout getLayout()
-
setLayout
public void setLayout(Layout layout)
-
getConfig
public Config getConfig()
-
setConfig
public void setConfig(Config config)
-
getEventHandlers
public EventHandler[] getEventHandlers()
-
setEventHandlers
public void setEventHandlers(EventHandler... handlers)
-
getTraces
public Trace[] getTraces()
-
setTraces
public void setTraces(Trace... data)
-
buildContext
protected void buildContext(String divName)
-
builder
public static Figure.FigureBuilder builder()
-
-