我正在使用WPF Toolkit进行图表制作。我必须要解决的问题是:
点是:(1,1),(2,1),(1,3),(4,4)
示例代码:
List<KeyValuePair<Double, Double>> valueList = new List<KeyValuePair<Double, Double>>();
valueList.Add(new KeyValuePair<double, double>(1,1));
valueList.Add(new KeyValuePair<double, double>(2,1));
valueList.Add(new KeyValuePair<double, double>(1,3));
valueList.Add(new KeyValuePair<double, double>(4,4));
this.lineSeriesAssay1.ItemsSource = valueList;