new ScrollRangeType()
The ScrollRangeType type defines the {start, end} type for the scrollRange field of a chart. Both start and end must be specified; otherwise, the scroll range has no effect.
Example
The following sample limits the chart's scroll-range to Jan 1st, 2001 to Jan 1st, 2002:
{
start: 2001,
end: 2002
}
The following sample limits the chart's scroll-range to Apr 1st, 2021 to Apr 30, 2021:
{
start: "#4/1/2021#",
end: "#4/30/2021#"
}
ScrollRangeType
Members
(static) end :any
The end field indicates the scroll range's end/right-margin date/time. Can be one of the following:
- string, date in format "#MM/DD/YYYY[ HH:mm:ss]#"
- Date, a JavaScript Date object to be copied
- number, integer representing the year of the date to create
- null, current date and time (equivalent to Now)
Type:
- any
(static) start :any
The start field indicates the scroll range's start/left-margin date/time. Can be one of the following:
- string, date in format "#MM/DD/YYYY[ HH:mm:ss]#"
- Date, a JavaScript Date object to be copied
- number, integer representing the year of the date to create
- null, current date and time (equivalent to Now)
Type:
- any