When using personized chart first I save my chart settings with save in the toolbox.
If I want to load these settings I got an Error in VS2005 OjectDisposedException with additionl information: Cannot access a disposed object.Object name: 'a'.
What is the reason for this?
If I press my refresh button then there will be the following items:
Call readDataFromDatabase
Chart1.Data.Clear()
If Not bDBErr Then Chart1.DataSource = ds.Tables(0)
But if I do it like this there will be an Error: ArgumentOutOfRangeException with the following description
Specified argument was out of the range of valid values.Parameter name: series
So what is wrong?
Hi I think we have the same problem. At the moment it helps me:
Chart1.Reset()
Chart1.DataSource = ds.Tables(0)
After this you'll have the problem, that you must relaod the Chartsettings, because after Chart.Reset you'll have the chart with default settings.
I use Chartfx in an application that shows data from a database. Values are logged into database every few seconds by other software. The chart should be refreshed time after time by pressing a button. How should I do this? When I press the button:
- I reset the chart with chart1.reset
- I create a new Dataset out of the database and bind it to the Chart with: Chart1.DataSource = ds.Tables(0) . <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
But chart1.reset isn't the right usage for this, isn't it? Because all chart settings will be lost.
If I use only chart1.refresh I get the VisualStudio-Error message:
ArgumentOutOfRangeException was unhandled: Specified argument was out of the range of valid values Parameter name: series.
What is wrong? Can you explain to me?