Here is a chunk of code that reproduces my problem:
MindFusion::Charting::WinForms::LineChart ^ chart = gcnew MindFusion::Charting::WinForms::LineChart;
chart->Location = System:
rawing:
oint(50, 275);
chart->Size = Drawing::Size(350, 210);
chart->LineType = MindFusion::Charting::LineTypes::Line;
chart->XAxisSettings->AxisLabelType = MindFusion::Charting::AxisLabelType::AutoScale;
chart->XAxisSettings->StartDateTime = System:
ateTime(2008,2,10);
chart->XAxisSettings->EndDateTime = System:
ateTime(2008,3,10);
chart->XAxisSettings->TimeSpan = (chart->XAxisSettings->EndDateTime - chart->XAxisSettings->StartDateTime);
chart->XAxisSettings->NumberFormat = MindFusion::Charting::NumberFormat::ShortDate;
chart->XAxisSettings->AxisLength = 250;
chart->YAxisSettings->AxisLabelType = MindFusion::Charting::AxisLabelType::AutoScale;
chart->YAxisSettings->MinValue = 0;
chart->YAxisSettings->MaxValue = 5;
chart->YAxisSettings->AxisDelta = 1;
chart->YAxisSettings->AxisLength = 150;
System::Collections::Generic::List<System:
ateTime> ^ xData1 = gcnew System::Collections::Generic::List<System:
ateTime>();
xData1->Add( System:
ateTime(2008,3,9) );
xData1->Add( System:
ateTime(2008,3,1) );
xData1->Add( System:
ateTime(2008,3,5) );
System::Collections::Generic::List<System::Collections::Generic::List<System:
a
teTime> ^> ^ xData = gcnew System::Collections::Generic::List<System::Collections::Generic::List<System:
a
teTime> ^>();
xData->Add( xData1 );
chart->XData = xData;
System::Collections::Generic::List<int> ^ yData1 = gcnew System::Collections::Generic::List<int>();
yData1->Add( 1 );
yData1->Add( 3 );
yData1->Add( 2 );
System::Collections::Generic::List<System::Collections::Generic::List<int> ^> ^ yData = gcnew System::Collections::Generic::List<System::Collections::Generic::List<int> ^>();
yData->Add( yData1 );
chart->YData = yData;
page1_.Controls->Add( chart );
Let me know if I should e-mail it separately in case the code is not readable in this forum post.
What I observe from this code is a 3/9/2008 label around the middle of the X axis and a 4/7/2008 label on the right end of the X axis (and no label at the left end of the X axis). Please help me see what I am doing wrong.
Thanks,
-Dave