Sets default for all colors associated with this axis all at once: line, font, tick, and grid colors. Grid color is lightened by blending this with the plot background Individual pieces can override this.
Sets the color of the dividers Only has an effect on multicategory axes.
Sets the width (in px) of the dividers Only has an effect on multicategory axes.
Determines a formatting rule for the tick exponents.
For example, consider the number 1,000,000,000.
If none
, it appears as 1,000,000,000.
If e
, 1e+9.
If E
, 1E+9.
If power
, 1x10^9 (with 9 in a super script).
If SI
, 1G.
If B
, 1B.
Determines whether or not this axis is zoom-able. If true, then zoom is disabled.
Sets the color of the grid lines.
Sets the width (in px) of the grid lines.
Sets the hover text formatting rule using d3 formatting mini-languages
which are very similar to those in Python.
For numbers, see: https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format
And for dates see: https://github.com/d3/d3-3.x-api-reference/blob/master/Time-Formatting.md#format
We add one item to d3's date formatter: %{n}f
for fractional seconds with n digits.
For example, "2016-10-13 09:15:23.456"
with tickformat "%H~%M~%S.%2f"
would display "09~15~23.46"
Sets the axis line color
Sets the width (in px) of the axis line.
Hide SI prefix for 10^n if |n| is below this number. This only has an effect when tickformat
is "SI" or "B".
'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. Applies only to linear axes.
'If true
, even 4-digit integers are separated
Determines whether or not a dividers are drawn between the category levels of this axis. Only has an effect on multicategory axes.
If all
, all exponents are shown besides their significands.
If first
, only the exponent of the first tick is shown.
If last
, only the exponent of the last tick is shown.
If none
, no exponents appear.
Determines whether or not grid lines are drawn.
If true
, the grid lines are drawn at every tick mark.
Determines whether or not a line bounding this axis is drawn.
If all
, all tick labels are displayed with a prefix.
If first
, only the first tick is displayed with a prefix.
If last
, only the last tick is displayed with a suffix.
If none
, tick prefixes are hidden.
Same as showtickprefix
but for tick suffixes.
Determines the drawing mode for the spike line.
If toaxis
, the line is drawn from the data point to the axis the
series is plotted on.
If across
, the line is drawn across the entire plot area, and
supercedes toaxis.
If marker
, then a marker dot is drawn on the axis the series is
plotted on
Determines whether spikelines are stuck to the cursor or to the closest datapoints.
Sets the tick label formatting rule using d3 formatting mini-languages
which are very similar to those in Python.
For numbers, see: https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format
And for dates see: https://github.com/d3/d3-3.x-api-reference/blob/master/Time-Formatting.md#format
We add one item to d3's date formatter: %{n}f
for fractional seconds with n digits.
For example, "2016-10-13 09:15:23.456"
with tickformat "%H~%M~%S.%2f"
would display "09~15~23.46"
Array of Partial<TickFormatStop>
objects.
Ticks
Sets a tick label suffix.
Former titlefont
is now the sub-attribute font
of title
.
To customize title font properties, please use title.font
now.
A single toggle to hide the axis while preserving interaction like dragging. Default is true when a cheater plot is present on the axis, otherwise false
Determines whether or not a line is drawn at along the 0 value
of this axis.
If true
, the zero line is drawn on top of the grid lines.
Sets the line color of the zero line.
Sets the width (in px) of the zero line.
Specifies the ordering logic for the case of categorical variables. By default, plotly uses trace, which specifies the order that is present in the data supplied. Set
categoryorder
to category ascending or category descending if order should be determined by the alphanumerical order of the category names. Setcategoryorder
to array to derive the ordering from the attributecategoryarray
. If a category is not found in thecategoryarray
array, the sorting behavior for that attribute will be identical to the trace mode. The unspecified categories will follow the categories incategoryarray
. Setcategoryorder
to total ascending or total descending if order should be determined by the numerical order of the values. Similarly, the order can be determined by the min, max, sum, mean or median of all the values.