For point 2, you can still set XValueType to DateTime , but with the correct format in LabelStyle .
chart1.Series[SeriesName].XValueType = ChartValueType.DateTime; // Use the required format. I used the below format as example. chart1.ChartAreas[ChartName].AxisX.LabelStyle.Format = "dd/mm/yy hh:mm:ss";
For point 1, add a StripLine to the y-axis of the chart.
StripLine stripline = new StripLine(); stripline.Interval = 0; stripline.IntervalOffset = average value of the y axis; eg:35 stripline.StripWidth = 1; stripline.BackColor = Color.Blue; chart1.ChartAreas[ChartAreaName].AxisY.StripLines.Add(stripline);
source share