Code: Select all
Chart1->AddSeries(new TLineSeries(Chart1));
Chart1->Series[0]->AddXY(1,1);
Chart1->Series[0]->AddXY(2,2);
Chart1->Series[0]->OnMouseEnter = OnSeriesMouseEnter;
Chart1->BottomAxis->SetMinMax(0,10);
Chart1->LeftAxis->SetMinMax(0,10);
Code: Select all
AnsiString Message = Label1->Caption;
Message += AnsiString(_T("Entering series\n"));
Label1->Caption = Message;