Package tech.tablesaw.plotly.components
Class Marker.MarkerBuilder
java.lang.Object
tech.tablesaw.plotly.components.Marker.MarkerBuilder
- Enclosing class:
- Marker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoColorScale(boolean b) Has an effect only if `marker.color` is set to a numerical array.build()cAuto(boolean b) Has an effect only if `marker.color` is set to a numerical array and `cmin`, `cmax` are also set.cMinAndMax(double min, double max) Has an effect only if `marker.color` is set to a numerical array.color(double[] color) Sets the marker color to an array of numeric values for use when a color scale is providedSets the marker color to a single valueSets the marker color to an array of color valuesSets the ColorBar to display the scale for the markercolorScale(Marker.Palette palette) Sets the colorscale and only has an effect if `marker.color` is set to a numerical array.Sets a gradient for the markerSets an outline around the markeropacity(double opacity) Sets the opacity.reverseScale(boolean b) Has an effect only if `marker.color` is set to a numerical array.showScale(boolean b) Has an effect only if `marker.color` is set to a numerical array.size(double... size) size(tech.tablesaw.api.NumericColumn<?> size) sizeMode(Marker.SizeMode sizeMode) Sets the size mode for the markerSets the symbol for the marker
-
Constructor Details
-
MarkerBuilder
public MarkerBuilder()
-
-
Method Details
-
size
-
size
-
cAuto
Has an effect only if `marker.color` is set to a numerical array and `cmin`, `cmax` are also set. In this case, it controls whether the range of colors in `colorscale` is mapped to the range of values in the `color` array (`cauto: True`), or the `cmin`/`cmax` values (`cauto: False`).Defaults to `False` when `cmin`, `cmax` are set by the user.
-
reverseScale
Has an effect only if `marker.color` is set to a numerical array. Reverses the color mapping if True (`cmin` will correspond to the last color in the array and `cmax` will correspond to the first color). -
line
Sets an outline around the marker -
gradient
Sets a gradient for the marker -
colorBar
Sets the ColorBar to display the scale for the marker -
autoColorScale
Has an effect only if `marker.color` is set to a numerical array. Determines whether the colorscale is a default palette (`autocolorscale: True`) or the palette determined by `marker.colorscale`. In case `colorscale` is unspecified or `autocolorscale` is True, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.Defaults to true
-
cMinAndMax
Has an effect only if `marker.color` is set to a numerical array. Sets the lower and upper bound of the color domain. Values should be associated to the `marker.color` array index -
showScale
Has an effect only if `marker.color` is set to a numerical array. Determines whether or not a colorbar is displayed. -
colorScale
Sets the colorscale and only has an effect if `marker.color` is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string.At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)', [1, 'rgb(255,0,0)']]`.
To control the bounds of the colorscale in color space, use `marker.cmin` and `marker.cmax`.
-
opacity
Sets the opacity. Value must be between 0 and 1 inclusive -
color
Sets the marker color to a single value -
color
Sets the marker color to an array of color values -
color
Sets the marker color to an array of numeric values for use when a color scale is provided -
symbol
Sets the symbol for the marker -
sizeMode
Sets the size mode for the markerHas an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels, either as area or the diameter
-
build
-