Interface: LayoutXaxisRangeselector
Range selector (plan E5.9): buttons over the chart that set the x range to a preset span ending at the current range end (last 6 months, year to date, all). Date axes only. The button whose range is in view shows as active.
Properties
| Property | Type | Default value | Description |
|---|---|---|---|
activecolor? | string | undefined | Background of the active button (the one whose range is in view) and of hovered buttons. Defaults to bgcolor darkened (light colors) or lightened (dark colors). |
bgcolor? | string | "#eee" | Background of the buttons. |
bordercolor? | string | "#444" | Border color of the buttons. |
borderwidth? | number | 0 | Border width of the buttons, px. Minimum: 0 |
buttons? | readonly LayoutXaxisRangeselectorButton[] | undefined | The buttons, left to right. |
font? | LayoutXaxisRangeselectorFont | undefined | Button font. Defaults to layout.font. |
visible? | boolean | undefined | Show the range selector. Defaults to true when it has buttons. |
x? | number | undefined | Horizontal position in paper coordinates (fractions of the plot area width). Defaults to the start of the axis domain. Give x and y together; one alone is ignored. Range: -2 – 3 |
xanchor? | "auto" | "left" | "center" | "right" | "left" | Which side of the button row x refers to. |
y? | number | undefined | Vertical position in paper coordinates. Defaults to just above the highest subplot on this x axis. Range: -2 – 3 |
yanchor? | "auto" | "top" | "middle" | "bottom" | "bottom" | Which side of the button row y refers to. |