Package tech.tablesaw.plotly.traces
Class TraceBuilder
java.lang.Object
tech.tablesaw.plotly.traces.TraceBuilder
- Direct Known Subclasses:
BarTrace.BarBuilder,BoxTrace.BoxBuilder,ContourTrace.ContourBuilder,HeatmapTrace.HeatmapBuilder,Histogram2DTrace.Histogram2DBuilder,HistogramTrace.HistogramBuilder,PieTrace.PieBuilder,Scatter3DTrace.Scatter3DBuilder,ScatterTrace.ScatterBuilder,ViolinTrace.ViolinBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected HoverLabelprotected String[]Assigns id labels to each datum.protected StringSets the legend group for this trace.protected StringSets the trace name.protected doubleSets the opacity of the trace.protected BooleanDetermines whether or not an item corresponding to this trace is shown in the legend.protected AbstractTrace.Visibilityprotected StringSets a reference between this trace's x coordinates and a 2D cartesian x axis.protected StringSets a reference between this trace's y coordinates and a 2D cartesian y axis. -
Method Summary
Modifier and TypeMethodDescriptionprotected static String[]columnToStringArray(tech.tablesaw.columns.Column<?> column) protected abstract StringgetType()protected TraceBuilderhoverLabel(HoverLabel hoverLabel) legendGroup(String group) opacity(double n) protected TraceBuildershowLegend(boolean showLegend) protected TraceBuildervisible(AbstractTrace.Visibility visibility)
-
Field Details
-
visible
-
showLegend
Determines whether or not an item corresponding to this trace is shown in the legend. -
legendGroup
Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. -
opacity
protected double opacitySets the opacity of the trace. -
name
Sets the trace name. The trace name appear as the legend item and on hover. -
ids
Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type. -
hoverLabel
-
xAxis
Sets a reference between this trace's x coordinates and a 2D cartesian x axis. If *x* (the default value), the x coordinates refer to `layout.xaxis`. If *x2*, the x coordinates refer to `layout.xaxis2`, and so on. -
yAxis
Sets a reference between this trace's y coordinates and a 2D cartesian y axis. If *y* (the default value), the y coordinates refer to `layout.yaxis`. If *y2*, the y coordinates refer to `layout.yaxis2`, and so on.
-
-
Method Details
-
getType
-
name
-
opacity
-
legendGroup
-
showLegend
-
visible
-
hoverLabel
-
columnToStringArray
-
xAxis
-
yAxis
-