Sign in to follow this  
jayeshpawar.jk23@gmail.com

Update Chart Data Without refreshing chart graphics

Recommended Posts

HI All,

 

 

 if (chart_status==0) {
                    dj("#chartContainer").insertFusionCharts({
                        swfUrl: "../FusionCharts/MSLine.swf",
                        width: "800",
                        height: "400",
                        id: "myChartId",
                        dataFormat: "jsonurl",
                        dataSource: "../path.txt"
                    });
                    chart_status = 1;
                } else {
                   
                    dj("#chartContainer").updateFusionCharts({
                        width: "900",
                        height: "400",
                        id: "myChartId",
                        dataFormat: "jsonurl",
                        dataSource: "../path.txt"
                    });
               }
Above is my code to create chart.
This data is called after every 2 second and data within path.txt is updated in json data..
InsertFusionCharts is working fine but  updateFusionCharts not reflact any changes on existing chart.
 
Can any one please suggest solution. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this