Package tech.tablesaw.plotly.components
Class Axis.AxisBuilder
java.lang.Object
tech.tablesaw.plotly.components.Axis.AxisBuilder
- Enclosing class:
- Axis
-
Method Summary
Modifier and TypeMethodDescriptionautoRange(Axis.AutoRange autoRange) Determines whether or not the range of this axis is computed in relation to the input data.build()categoryOrder(Axis.CategoryOrder categoryOrder) constrain(Axis.Constrain constrain) constrainToward(Axis.ConstrainToward constrainToward) domain(float start, float end) fixedRange(boolean fixedRange) Determines whether or not this axis is zoom-able.gridWidth(int width) lineWidth(int lineWidth) overlaying(ScatterTrace.YAxis axisToOverlay) Instructs plotly to overly the trace with this axis on top of a trace with another axisSets the range of this axis.Sets the range of this axis.rangeMode(Axis.RangeMode rangeMode) If "normal", the range is computed in relation to the extrema of the input data.rangeslider(String slider) scaleRatio(double scaleRatio) If this axis is linked to another by `scaleanchor`, this determines the pixel to unit scale ratio.showGrid(boolean showGrid) showLine(boolean showLine) showZeroLine(boolean zeroLine) spikes(Axis.Spikes spikes) tickSettings(TickSettings tickSettings) Defines all the settings related to the display of tick marks on this axisvisible(boolean visible) zeroLineColor(String color) zeroLineWidth(int zeroLineWidth)
-
Method Details
-
title
-
titleFont
-
type
-
categoryOrder
-
domain
-
visible
-
side
-
overlaying
Instructs plotly to overly the trace with this axis on top of a trace with another axis- Parameters:
axisToOverlay- The axis we want to overlay- Returns:
- this AxisBuilder
-
fixedRange
Determines whether or not this axis is zoom-able. If True, then zoom is disabled. -
color
-
font
-
rangeMode
If "normal", the range is computed in relation to the extrema of the input data. If "tozero"`, the range extends to 0, regardless of the input data If "nonnegative", the range is non-negative, regardless of the input data.The default is normal.
-
spikes
-
autoRange
Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided, then `autorange` is set to "False". -
range
Sets the range of this axis. If the axis `type` is "log", then you must take the log of your desired range (e.g. to set the range from 1 to 100, set the range from 0 to 2).If the axis `type` is "date", it should be date strings, like date data, though Date objects and unix milliseconds will be accepted and converted to strings. If the axis `type` is "category", it should be numbers, using the scale where each category is assigned a serial number from zero in the order it appears.
-
range
Sets the range of this axis. If the axis `type` is "log", then you must take the log of your desired range (e.g. to set the range from 1 to 100, set the range from 0 to 2).If the axis `type` is "date", it should be date strings, like date data, though Date objects and unix milliseconds will be accepted and converted to strings. If the axis `type` is "category", it should be numbers, using the scale where each category is assigned a serial number from zero in the order it appears.
-
constrain
-
constrainToward
-
scaleRatio
If this axis is linked to another by `scaleanchor`, this determines the pixel to unit scale ratio. For example, if this value is 10, then every unit on this axis spans 10 times the number of pixels as a unit on the linked axis. Use this for example to create an elevation profile where the vertical scale is exaggerated a fixed amount with respect to the horizontal.- Parameters:
scaleRatio- a number >= 1- Returns:
- this AxisBuilder
-
tickSettings
Defines all the settings related to the display of tick marks on this axis -
lineWidth
-
zeroLineWidth
-
gridWidth
-
lineColor
-
gridColor
-
zeroLineColor
-
showLine
-
showGrid
-
showZeroLine
-
rangeslider
-
build
-