refresh
[ root » refresh ]
Sets the chart's automated data refresh system.
Attribute | Type | Description |
---|---|---|
adjustScale adjust-scale | Boolean | Enabling true will allow dynamic value range of the scale pertaining to the values. Default Value: false |
curtain | Object | A 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. |
interval | Number | Sets the timeout between two refresh operations. If value is smaller than 50, seconds are assumed. Otherwise, milliseconds are assumed. |
maxTicks max-ticks | Number | Sets the max amount of nodes visible in the graph. |
method | String | When 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 | Boolean | Sets whether the chart reloads at the end of the interval and clears the data from the chart or preserves it. |
resetTimeout reset-timeout | Number | The number of nodes before starting the feed from 0 again. |
stopTimeout stop-timeout | Number | Specifies how many data points a chart will draw from the source before it stops. |
transport | String | Defines the specific type of feed. Accepted Values: ['http', 'js', 'websockets'] |
type | String | Sets 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'] |
url | String | The URL path for the feed. |