DBChart: Dynamically Assigning data.
Posted: Thu Feb 17, 2005 7:20 pm
I have been trying to dynamically assign data to a Series in a DBChart using a TClientDataSet and one scatter point series. I am using the following code:
The correct field is assigned by the value. The charts name is "contChart". When I get to the "contChart.RefreshData" statement I get an Access violation.
Any thoughts to the problem?
Code: Select all
ApplyResults.active := true;
applyResults.open;
Series1.YValues.ValueSource := cbContOutputs.Text;
Series1.XValues.ValueSource := 'Pred_'+cbContOutputs.Text;
series1.CheckDataSource;
contChart.RefreshData;
ApplyResults.Close;
Any thoughts to the problem?