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 classFigure.FigureBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringasJavascript(String divName)protected voidbuildContext(String divName)static Figure.FigureBuilderbuilder()StringdivString(String divName)protected StringeventHandlerFunction(String targetName, String divName)ConfiggetConfig()Map<String,Object>getContext()EventHandler[]getEventHandlers()LayoutgetLayout()Trace[]getTraces()protected StringplotFunction(String divName)voidsetConfig(Config config)voidsetEventHandlers(EventHandler... handlers)voidsetLayout(Layout layout)voidsetTraces(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()
-
-