Feed

Feed

Learn about methods that affect the refresh object.

clearfeed

Clears the current graph and restarts the feed.

zingchart.exec('myid', 'clearfeed');

getinterval

Returns the interval value set on the feed.

zingchart.exec('myid', 'getinterval');
https://app.zingsoft.com/demos/embed/9QQTVFZE
https://app.zingsoft.com/demos/embed/9QQTVFZE
AttributeTypeInfo
graphid (optional)Mixed

The id/index of the graph. The default is 0.

"mygraph" | 0 | 1 | ...

Sets the feed interval on a feed graph. 49 is the max numeric value in seconds, if you put 50 it switches to milliseconds.

zingchart.exec('myid', 'setinterval', '{interval: 3}');
https://app.zingsoft.com/demos/embed/9QQTVFZE
https://app.zingsoft.com/demos/embed/9QQTVFZE
AttributeTypeInfo
graphid (optional)Mixed

The id/index of the graph. The default is 0.

"mygraph" | 0 | 1 | ...

intervalNumeric

Time of the feed interval set in seconds or milliseconds.

1 | 500 | ...

Starts the feed.

zingchart.exec('myid', 'startfeed');
https://app.zingsoft.com/demos/embed/8ARMOTUK
https://app.zingsoft.com/demos/embed/8ARMOTUK

stopfeed

Stops the feed.

zingchart.exec('myid', 'stopfeed');
https://app.zingsoft.com/demos/embed/8ARMOTUK
https://app.zingsoft.com/demos/embed/8ARMOTUK