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');
        
A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/9QQTVFZE
AttributeTypeInfo

graphid (optional)

Mixed

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

"mygraph" | 0 | 1 | ...

setinterval

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}');
        
A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/9QQTVFZE
AttributeTypeInfo

graphid (optional)

Mixed

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

"mygraph" | 0 | 1 | ...

interval

Numeric

Time of the feed interval set in seconds or milliseconds.

1 | 500 | ...

startfeed

Starts the feed.


          
zingchart.exec('myid', 'startfeed');
        
A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/8ARMOTUK

stopfeed

Stops the feed.


          
zingchart.exec('myid', 'stopfeed');
        
A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/8ARMOTUK