ZoomCharts Documentation
TimeChart.settings.interaction.scrolling
Scrolling settings.
Properties
Enables/Disables scrolling.
Scrolling friction coefficient (chartWidth/ms^2).
Limits scrolling in the left side. This should be either the timestamp value in milliseconds or the string constants 'oldestData' or 'oldestDataRounded'.
'oldestDataRounded' means that the scrolling limit will be the oldest data point rounded down for the currently visible major time unit (the bottom line in the time axis). For example, if the data starts on June, when viewing the whole year, the first half of the year will be shown empty.
Specify null
to disable the limit.
Defines the chart behavior when the chart is scrolled passed the data limits. The actual limits are stored in limitFrom
and limitTo
.
- snapBack - allow scrolling past the limit but scroll back.
- block - do not allow to scroll past the limit
- null - no limit scroll
Limits scrolling in the right side. This should be either the timestamp value in milliseconds or the string constants 'newestData', 'newestDataRounded' or 'now'.
'newestDataRounded' means that the scrolling limit will be the newest data point rounded up for the currently visible major time unit (the bottom line in the time axis). For example, if the data ends on June, when viewing the whole year, the second half of the year will be shown empty.
Specify null
to disable the limit.
The maximum time the scroll animation can run, in milliseconds. This does not apply when the user swipes the chart to start
the animation, for that use kineticFriction
instead. This setting however applies when the visible range is changed by using the toolbar
or API methods.
Set to null
to disable the limit.
Allows the user to scroll past the limit to a certain degree. This coefficient is multiplied to the overscroll area - so if overscrollProportion
is set to 0.1 and the user scrolls 10 units past the limit, the chart will scroll back 9 units.
Whether to use scrolling by full page instead of kinetic scrolling when using swipes (instead of dragging the chart).