title: How to place bars in the correct place on a chart in c#
body: <p>Hi I am currently trying to get the bars to be aligned over the the numbers in the x axis. As you can see in the image below, my bars in the chart seem to align to the left or right.</p>
  
  <p>[URL=http://imageshack.us/photo/my-images/528/stackoverflowexample.png/][IMG=http://img528.imageshack.us/img528/19/stackoverflowexample.png][/IMG][/URL]</p>
  
  <p>Uploaded with [URL=http://imageshack.us]ImageShack.us[/URL]</p>
  
  <p>I was wondering if there was a way using lines of code to make them align directly over the numbers 1, 2 and 3? </p>
  
  <p>I also wondering if it is possible to change 1, 2 and 3 into the name temprature, vcc and light??</p>
  
  <p>I have done some looking into it and am unable to find how to correct this problem (as you can see from the commented out lines of code were i have tried) and this is why i have turned to you guys.I have posted my code below ( slightly modified so it will work in any c# without my variables).</p>
  
  <p>thanks for takin the time to read this </p>
  
  <pre><code>chart1.ChartAreas.Add("area");
                      //chart1.ChartAreas["area"].AxisX.Minimum = 0;
                      //chart1.ChartAreas["area"].AxisX.Maximum = 2;
                      //chart1.ChartAreas["area"].AxisX.Interval = 1;
                      //chart1.ChartAreas["area"].AxisX.IntervalAutoMode;
                      chart1.ChartAreas["area"].AxisY.Minimum = 0;
                      chart1.ChartAreas["area"].AxisY.Maximum = sumLight + 100;
                      chart1.ChartAreas["area"].AxisY.Interval = 50;
                      chart1.ChartAreas["area"].AxisY.Title = "Average Value";
                      //chart1.ChartAreas["area"].AxisX.Title = "Speed (m/s)";
  
                      chart1.Series.Add("Temprature");
                      chart1.Series.Add("VCC");
                      chart1.Series.Add("Light");
  
                      chart1.Series["Temprature"].Color = Color.Red;
                      chart1.Series["VCC"].Color = Color.Green;
                      chart1.Series["Light"].Color = Color.Yellow;
  
                      chart1.Series["Temprature"].Points.AddXY(1, 78.32);
                      chart1.Series["VCC"].Points.AddXY(2, 3.92);
                      chart1.Series["Light"].Points.AddXY(3, 333);
                      chart1.Series["Temprature"].IsValueShownAsLabel = true;
                      chart1.Series["VCC"].IsValueShownAsLabel = true;
                      chart1.Series["Light"].IsValueShownAsLabel = true;
  
                      chart1.Legends.Add("legend");
                      chart1.Titles.Add("Average for Temperature, Light &amp; VCC using timestamp");
  
  
                      chart1.Visible = true;
  </code></pre>