I am plotting multiple series of data from CSV files on the same MSChart. Although the TimeString values for two series may not coincide (one group of points was gathered after the other), I'm getting the data for both plots overlaid, with the timestamp on the chart coming from the last series loaded.
I want to find out how to show each series of data with absolute time, so the time components from each series are relatively correct when the plots are compared. If they overlap in time the XY plots can overlap. If they are from separate time periods the plots should be adjacent.
This is how I read the CSV data into my DataTables
DataTable[] seriesData;
...
private void BindData(int pen, string fname)
{
try
{
if (System.IO.File.Exists(fname))
{
seriesData[pen - 1] = GetDataTable(fname);
DataTableReader myReader = seriesData[pen - 1].CreateDataReader();
chart1.Series[pen - 1].Points.DataBindXY(myReader, "TimeString", myReader, "VarValue");
chart1.Series[pen - 1].ChartType = SeriesChartType.Line;
}
}
catch (Exception ex)
{
MessageBox.Show("Exception: " + ex.Message);
}
}
