I am trying to test a proof of concept to add to an a chart for an old matlab procedure i would eventually like to move off to .net Bascially I will be passing in an array and need to get it added to a chart labeled tempref. I have tried some data lists and sources because i thought you could add this type of information without re-processing the array. If someone could help me with this proof of concept my company will be moving foward with this technology for a few uses. m_report is a object of WPF that holds server charts and graphs that i need to populate. Tempref is the particular one i am trying to import. m_TemperatureReferences is the array that currently holds the information, right now just a list of y points, but eventuaally it will hold the complete data.
m_Report.TempRef.Data.X[0, 0] = 20; m_Report.TempRef.Data.X[0, 1] = 40;
m_Report.TempRef.Data.X[0, 2] = 60;
m_Report.TempRef.Data.X[0, 3] = 100;
foreach(double[] tempRefArr in this.m_TemperatureReferences) {
if (tempRefArr != null) {
int x = 0; foreach (double tempRef in tempRefArr) {
m_Report.TempRef.Data.Y[0, x] = tempRef;
x++;
}
}
}
}
i should note that the chart appears on screen with no points