User (Legacy) Posted November 10, 2006 Report Share Posted November 10, 2006 I'm trying to create an image-rendered chart, which will update at an interval with new data. Pretty much a web-based 'realtime' chart. Anyone know how to do this? Thanks, Adam Link to comment Share on other sites More sharing options...
Software FX Posted November 10, 2006 Report Share Posted November 10, 2006 Here's a great article you might be interested in: Q7651001. Chart FX for VS 2005 and AJAX Chart FX makes extensive use of AJAX internally to provide a rich UI, additionally Chart FX supports mechanisms for AJAX interactions from external controls. This article explains a few techniques for using Chart FX within an AJAX-rich environment. URL: http://support.softwarefx.com/ShowArticle.aspx?Type=KB&Product=CfxNet70&Source=http://support.softwarefx.com/kb/765/1/001.htm?_r=1 In particular you can use the UserCallback Event along with some Java Script timer code to achieve what you need. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
User (Legacy) Posted November 13, 2006 Author Report Share Posted November 13, 2006 For some unknown reason, whenever the chart is altering using callback, my data is lost and chart shows random dataset. -Adam Link to comment Share on other sites More sharing options...
Software FX Posted November 13, 2006 Report Share Posted November 13, 2006 How is your chart getting its data ? DataBinding ? Is ViewState enabled ? -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
User (Legacy) Posted November 13, 2006 Author Report Share Posted November 13, 2006 Software FX wrote: > How is your chart getting its data ? DataBinding ? Is ViewState enabled ? > I´ve set the datasource to a SqlDatasource which is databound. I´m using the DataSourceSettings.ReloadData() to refresh the chart (this may be incorrect usage). The goal is to have a chart which periodically (every 10 seconds) refreshes itself to new data added to the Sql table. Thanks, Adam Link to comment Share on other sites More sharing options...
User (Legacy) Posted November 13, 2006 Author Report Share Posted November 13, 2006 I found that it is necessary to define DatasourceID on Page_Load rather than in the control properties in order to preserve the data. -Adam Adam Kunicki wrote: > Software FX wrote: >> How is your chart getting its data ? DataBinding ? Is ViewState enabled ? >> > > I´ve set the datasource to a SqlDatasource which is databound. I´m using > the DataSourceSettings.ReloadData() to refresh the chart (this may be > incorrect usage). > > The goal is to have a chart which periodically (every 10 seconds) > refreshes itself to new data added to the Sql table. > > Thanks, > Adam Link to comment Share on other sites More sharing options...
Software FX Posted November 13, 2006 Report Share Posted November 13, 2006 Also, adding the following to your callback/page_load: this.DataBind(); Will do the trick. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.