title: c# Draw a graph with chart winforms
body: <p>I try to draw a graph (chartType = Line) that I retrieve from a BDD, on the ordinate I own places and on the abscissa of the hours.
  I want to draw a route (places) according to the time (time of passage to the place) to compare with other routes.</p>
  
  <p>But I can't put string on the axe Y.</p>
  
  <pre><code>Const string DB_CONN_STR = "SERVER=127.0.0.1; DATABASE=test7100; UID=root; PASSWORD=";
  
          MySqlConnection cn = new MySqlConnection(DB_CONN_STR);
          DataSet ds = new DataSet();
          DataTable dt = new DataTable();
  
          string sqlCmd = "SELECT  `PR4`, `DHT`, `DHR` FROM `table 4` WHERE 1";
              // PR4= place et DHT= time
              MySqlDataAdapter adr = new MySqlDataAdapter(sqlCmd, cn);
              adr.SelectCommand.CommandType = CommandType.Text;
              adr.Fill(dt);
  
  
  
          string[] x = new string[dt.Rows.Count];
          string[] y = new string[dt.Rows.Count];
  
          for (int i = 0; i &lt; dt.Rows.Count; i++)
          {
              y[i] = dt.Rows[i][0].ToString();
              x[i] = dt.Rows[i][1].ToString();
  
          }
  
          for (int i = 0; i &lt; dt.Rows.Count; i++)
          {
              grapheSillon.Series[0].Points.AddXY(x[i], y[i]);
          }
  </code></pre>