Page 1 sur 1

JpGraph Error

Posté : 02 juil. 2008, 09:55
par fatfat45
Bonjour,
j'utilise l'implémentation jpgraph. mon code marchait bien il y a deux mois, mais maintenant, j'ai une erreur:
JpGraph Error Unknown color specification: , size=0 :(

une partie de mon code:

Code : Tout sélectionner

$i=0; for($i=0;$i<count($KeyListeSt);$i++) { $plotSt="PLOT_".$i; ${$plotSt}=new LinePlot($TabDataFormatSt[$i]); ${$plotSt}->SetColor($Color[$i]); // Set the legends for the plots ${$plotSt}->SetLegend($TabListeSt[$i]); ${$plotSt}->SetWeight(2); ${$plotSt}->mark->SetType($Forme[$i]); ${$plotSt}->mark->SetFillColor($Color[$i]); $graphchantierclotSt->Add(${$plotSt}); }
Quelqu'un a t il eu le même problème? parce que là je sature.
Merci d'avance

Posté : 02 juil. 2008, 11:07
par jojolapine
Bonjour,
Que donne le code suivant:
var_dump($Color);[$i]
(inséré avant la méthode SetColor() )