Skip to content

Interface: LayoutXaxisRangeselectorButton ​

One item of buttons.

Template defaults for every item go in buttondefaults.

Properties ​

PropertyTypeDefault valueDescription
count?number1Number of steps the range spans. Minimum: 0
label?stringundefinedButton text. Default: count and the first letter of step (6m), or all.
name?stringundefinedName of this button, used to reference it from a template via templateitemname.
step?"all" | "hour" | "month" | "year" | "day" | "minute" | "second""month"Unit of the range the button sets, with count; all autoranges the axis instead.
stepmode?"backward" | "todate""backward"backward: the range ends at the current range end and starts count steps before it. todate: it starts at the start of the step period, count - 1 periods back (count: 1, step: 'year' is year-to-date).
templateitemname?stringundefinedName of a template button to inherit from. If no template item matches, this button is hidden (visible: false).
visible?booleantrueShow this button.

Released under the MIT License.