我试图根据工具运行长度的值更改条形图中的颜色,如果数量超过2,000我需要数据点变红。任何建议都有帮助,这是我的代码
SqlDataAdapter graph = new SqlDataAdapter("SELECT machi[ne, tool, Sum(length)][1] as length FROM CHART WHERE Machine Like'" + comboBox2.Text + "' and tool Like '%p2' group by tool,machine order by length desc", CON);
DataTable graphdata = new DataTable();
graph.Fill(graphdata);
chart1.DataSource = graphdata;
chart1.ChartAreas["ChartArea1"].AxisX.Title = comboBox1.Text;
chart1.Series["Series1"].XValueMember = "tool";
chart1.Series["Series1"].YValueMembers = "length";