I have successfully used the c++ example project to draw graphs from my c++ project using zedgraph. However there is no example with Date axis for c++.
The following code is taken from the c# example found here http://zedgraph.org/wiki/index.php?title=Tutorial:Date_Axis_Chart_Demo. Please see my comments with the text //JEM// to see where my problem is
PointPairList list = new PointPairList();
for ( int i=0; i<36; i++ )
{
double x = (double) new XDate( 1995, 5, i+11 );
//JEM//This line above doesnt work in c++
double y = Math.Sin( (double) i * Math.PI / 15.0 );
list.Add( x, y );
}
....missing code...
// Set the XAxis to date type
myPane.XAxis.Type = AxisType.Date;
//JEM//This one also doesnt work even if i change it to the syntax that c++ understands i.e
myPane->XAxis->Type = AxisType->Date;
Please help