//chartbackswitch.View.AxisX.IsTime = true;
//ind=数据点数0~288~0 画色带。 d是实际数据
xydataD1 = new XYDataSeries() { XValuesSource = ind, ValuesSource = d };
//ind 同上 d同上
xydataH1 = new XYDataSeries() { XValuesSource = ind, ValuesSource = h };
//
chartbackswitch.Data.Children.Add(xydataH1);
chartbackswitch.Data.Children.Add(xydataD1);
// realdata = new XYDataSeries() { XValuesSource = x, ValuesSource = y };
//x是时间类型的数组。当我设定View.AxisX.IsTime = true;并且执行上面这条语句给x绑定值的时候曲线就异常了。
realdata = new XYDataSeries() { ValuesSource = y };
realdata.ChartType = ChartType.Line;
chartbackswitch.Data.Children.Add(realdata);
不能发图,不知道有么有高人帮帮忙啊 |