1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
/* On parcourt les séries du Chart1 */
for (int ActSerie = 0 ; ActSerie< Chart1->CountActiveSeries(); ActSerie++) {
/* On crée à chaque fois une série dans le Chart2 (Trouvé dans la FAQ)*/
TFastLineSeries *Serie;
Serie = new TFastLineSeries(this);
Serie->ParentChart = Chart2;
/* Pour chaque série on copie tous les points */
for (int point = 0; point < Chart1->Series[ActSerie]->Count() ; point ++) {
Chart2->Series[ActSerie]->AddXY( Chart1->Series[ActSerie]->XValue[point],Chart1->Series[ActSerie]->YValue[point] );
}
} |