Type class
Creates a control used to select date range and preset periods for a DateAxis
.
let selector = new am4plugins_rangeSelector.DateAxisRangeSelector() selector.container = document.getElementById("selectordiv"); selector.axis = chart.xAxes.getIndex(0);
var selector = new am4plugins_rangeSelector.DateAxisRangeSelector() selector.container = document.getElementById("selectordiv"); selector.axis = chart.xAxes.getIndex(0);
Click here for more information on how to use this plugin
@todo JSON example
Sources
This information about DateAxisRangeSelector is provided for reference only and is not available through exported packages and thus should not be imported or used on its own.
Inheritance
DateAxisRangeSelector extends RangeSelector
.
DateAxisRangeSelector is not extended by any other symbol.
Properties
axis # |
Type Inherited from A target axis to use range selector for. |
---|---|
classPrefix # |
Type Default Inherited from Class name prefix. |
clonedFrom # |
Type Inherited from Reference to the original object this object was cloned from. We need to keep this so we can disassociate it from source object when this object is disposed. |
config # |
Type Inherited from Use this property to set JSON-based config. When set, triggers processing routine, which will go through all properties, and try to apply values, create instances, etc. Use this with caution, as it is a time-consuming process. It's used for initialchart setup only, not routine operations. |
container # |
Type Inherited from An HTML container to place the control in. A container must be an HTML element, because the control itself is HTML, and cannot be placed into SVG. |
dateFormatter # |
Type A If not set, control will inherit one from the target axis. |
defaultStyles # |
Type Default Inherited from Indicates whether If set to |
events # |
Type Inherited from An |
id # |
Type Inherited from Sets the user-defined id of the element. |
inputDateFormat # |
Type Default An format to use for the date input fields. If not set, it will use |
language # |
Type Inherited from A |
periods # |
Type A list of pre-defined periods to show buttons for. |
position # |
Type Default Inherited from Position of the selector. Available options: NOTE: since the control is always placed in the external container, this setting does actually affect where the control is placed but rather default CSS that affects how specific elements are arranged. For example, when setting position to Similarly, for |
tabindex # |
Type Inherited from A tab index for the menu. Tab index will influence the order in which elements on the chart and the whole page are selected when pressing TAB key. |
uid # |
Type Inherited from Returns object's internal unique ID. |
zoomDelay # |
Type Default Number of milliseconds to wait after last keystroke in date input field before zooming the axis. |
There are 12 inherited items currently hidden from this list. |
Methods
clone( cloneId?: ) |
Returns Inherited from Makes a copy of this object and returns the clone. Try to avoid cloning complex objects like chart, create new instances if you need them. |
---|---|
constructor() |
Returns Constructor |
copyFrom( source: ) |
Returns Inherited from Copies all parameters from another |
dispatch( eventType: ) |
Returns Inherited from Dispatches an event using own event dispatcher. Will automatically populate event data object with event type and target (this element). It also checks if there are any handlers registered for this sepecific event. |
dispatchImmediately( eventType: ) |
Returns Inherited from Works like |
dispose() |
Returns Inherited from Destroys the control and all its elements. |
getCurrentThemes() |
Returns Inherited from Returns a list of themes that should be applied to this element. It could either be a list of themes set explicitly on this element, or system-wide. |
isDisposed() |
Returns Inherited from Returns if this object has been already been disposed. |
setPeriodInterval( interval: ) |
Returns Zooms the axis to a preset time interal or |
zoomToDates( date: ) |
Returns Zooms the axis using start date. |
There are 7 inherited items currently hidden from this list. |
Events
#drawn |
Param { type: Inherited from Invoked when control is drawn. |
---|---|
#periodselected |
Param { interval: Invoked when pre-defined period is selected (button clicked). @since 4.10.3 |
#positionset |
Param { position: Inherited from Invoked when position of the control changes. |
There are 2 inherited items currently hidden from this list. |
Adapters
DateAxisRangeSelector does not have any adapters.