tags:

views:

2286

answers:

2

Hello, I am looking for an example of using a datetime field on a zedgraph linechart X-Axis.

Edit - And how do I set the XAxis max scale

        myPane.XAxis.Type = AxisType.Date;
        myPane.XAxis.Scale.Min = 0;
        myPane.XAxis.Scale.Max = 12;
+2  A: 

You will have to convert the DateTime variables to XDate structs. You can create a method like this:

public XDate ConvertDateToXdate(DateTime date)
{
  return new XDate(date.ToOADate);
}

Here is an example of a chart using the XDate structs

scottm
A: 

slam i want zoom in and out not by mouse but by track bar in c sharp any one can help me plzzzzz..........

Farhan Abbas