Group: Forum Members
Last Active: 14 Years Ago
Posts: 2,
Visits: 1
|
Is there a mechanism to bind a NFunctionCalculator to a dataset?
I'd like to attach a function calculator to a dataset that is currently being also bound to a chart.
Here is the binding for two line series to a dataset with three columns,
// First line this->nChartControl2->DataBindingManager->AddBinding(0,0,"XValues",ds->Tables["laserdata"],"Tick"); this->nChartControl2->DataBindingManager->AddBinding(0,0,"Values",ds->Tables["laserdata"],"Gain");
// Second line this->nChartControl2->DataBindingManager->AddBinding(0,1,"XValues",ds->Tables["laserdata"],"Tick"); this->nChartControl2->DataBindingManager->AddBinding(0,1,"Values",ds->Tables["laserdata"],"Photodiode");
I would like to add a third series for bollinger calculation that uses the NFunctionCalculator based on the "Photodiode" data from the dataset.
However, I have not been able to figure out a mechanism to create a function calculator using the data from a dataset (Photodiode column). And, how to bind the calculator results to the third bollinger type series.
Any thoughts are appreciated.
Thanks.
|