Package tech.tablesaw.plotly.traces
Class BarTrace.BarBuilder
- java.lang.Object
-
- tech.tablesaw.plotly.traces.TraceBuilder
-
- tech.tablesaw.plotly.traces.BarTrace.BarBuilder
-
- Enclosing class:
- BarTrace
public static class BarTrace.BarBuilder extends TraceBuilder
-
-
Field Summary
-
Fields inherited from class tech.tablesaw.plotly.traces.TraceBuilder
hoverLabel, ids, legendGroup, name, opacity, showLegend, visible, xAxis, yAxis
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BarTrace
build()
protected String
getType()
BarTrace.BarBuilder
marker(Marker marker)
BarTrace.BarBuilder
name(String name)
BarTrace.BarBuilder
opacity(double opacity)
BarTrace.BarBuilder
orientation(BarTrace.Orientation orientation)
Sets the orientation of the bars.BarTrace.BarBuilder
showLegend(boolean b)
BarTrace.BarBuilder
xAxis(String xAxis)
BarTrace.BarBuilder
yAxis(String yAxis)
-
Methods inherited from class tech.tablesaw.plotly.traces.TraceBuilder
columnToStringArray, hoverLabel, legendGroup, visible
-
-
-
-
Method Detail
-
build
public BarTrace build()
-
orientation
public BarTrace.BarBuilder orientation(BarTrace.Orientation orientation)
Sets the orientation of the bars. With "v" ("h"), the value of the each bar spans along the vertical (horizontal).
-
opacity
public BarTrace.BarBuilder opacity(double opacity)
- Overrides:
opacity
in classTraceBuilder
-
name
public BarTrace.BarBuilder name(String name)
- Overrides:
name
in classTraceBuilder
-
showLegend
public BarTrace.BarBuilder showLegend(boolean b)
- Overrides:
showLegend
in classTraceBuilder
-
marker
public BarTrace.BarBuilder marker(Marker marker)
-
xAxis
public BarTrace.BarBuilder xAxis(String xAxis)
- Overrides:
xAxis
in classTraceBuilder
-
yAxis
public BarTrace.BarBuilder yAxis(String yAxis)
- Overrides:
yAxis
in classTraceBuilder
-
getType
protected String getType()
- Specified by:
getType
in classTraceBuilder
-
-