How to display Dynamically changing data without refreshing a web page?

If you want AnyChart to display periodically changing data you can use refresh_interval attribute of <chart> node. This will allow you to show changing data without reloading a whole web page.

Solution

First of all you need to create a server script that will provide dynamically changing data, like this one (load it and refresh several times):
http://www.anychart.com/products/anychart/tutorials/refresh/2dlineSmart.xml.php

In xml settings, set 'refresh_interval' attribute of <chart> node:

<?xml version="1.0"?>
<root>
<type>
<chart type="2DLine" refresh_interval = "10">

This attribute will force AnyChart to requery xml file with data and draw a new chart.

Final

Watch a live demo on our server: http://www.anychart.com/products/anychart/tutorials/refresh/2dlineSmart.html

Copyright ©2007 AnyChart.Com All rights reserved.