I am trying to change colors in my bar chart based on values of tool run length if the number goes over 2,000 i need the datapoint to turn red. any suggestions would be helpful here is my code
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";