[Chart]麻烦--不自动关联X轴的值
最近在学习Microsoft的chart控件
![](https://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif)
string[] titles = new string[] { "2010-01", "2010-03", "2010-04" };
int[] values = new int[] { 3001, 2045, 3430 };
string[] t2 = new string[] { "2010-01", "2010-02", "2010-03" };
int[] v2 = new int[] { 2001, 1545, 2430 };
pChart.Series.Clear();
pChart.Series.Add("kevin");
pChart.Series.Add("witty");
pChart.Series["kevin"].Points.DataBindXY(titles, values);
pChart.Series["witty"].Points.DataBindXY(t2, v2);
int[] values = new int[] { 3001, 2045, 3430 };
string[] t2 = new string[] { "2010-01", "2010-02", "2010-03" };
int[] v2 = new int[] { 2001, 1545, 2430 };
pChart.Series.Clear();
pChart.Series.Add("kevin");
pChart.Series.Add("witty");
pChart.Series["kevin"].Points.DataBindXY(titles, values);
pChart.Series["witty"].Points.DataBindXY(t2, v2);
结果很失望,v2的值只是顺序的放在了titles的各值上