refresh

[ root » refresh ]

Sets the chart's automated data refresh system.



AttributeTypeDescription
adjustScale
adjust-scale
BooleanEnabling true will allow dynamic value range of the scale pertaining to the values.
Default Value: false
curtainObjectA curtain object will gradually move off-screen as data is loaded into a chart. Curtains can be used to provide additional information as data is being loaded.
intervalNumberSets the timeout between two refresh operations. If value is smaller than 50, seconds are assumed. Otherwise, milliseconds are assumed.
maxTicks
max-ticks
NumberSets the max amount of nodes visible in the graph.
methodStringWhen using WebSockets, set to 'push' to update the chart whenever the server emits a value, or set to 'pull' to have the chart pull data from the server at set intervals.
Accepted Values: ['push', 'pull']
preserveData
preserve-data
BooleanSets whether the chart reloads at the end of the interval and clears the data from the chart or preserves it.
resetTimeout
reset-timeout
NumberThe number of nodes before starting the feed from 0 again.
stopTimeout
stop-timeout
NumberSpecifies how many data points a chart will draw from the source before it stops.
transportStringDefines the specific type of feed.
Accepted Values: ['http', 'js', 'websockets']
typeStringSets the type of data refresh, with options being 'feed', where the chart updates dynamically as each value is fed in, or 'full', where the chart will only update when there are enough new values to do a full chart refresh.
Accepted Values: ['feed', 'full']
urlStringThe URL path for the feed.