Label d'abcisses sous artichow
theghz
-
foxjester -
foxjester -
Bonjour,
j'ai besoin d'afficher des courbes dans un site, pour ce faire j'utilise artichow. Je n'ai pas eu de problème à définir le Label de l'axe x quand je ne dessinais qu'une seule courbe, mais j'ai eu besoin d'en dessiner plusieurs dans le même graphe, et là la méthode pour définir le label ne fonctionne plus.
voici le code que j'ai utilisé avant et qui marchait à merveille:
$hours=array('0h','','','','1h','','','','2h','','','','3h','','','','4h','','','','5h','','','','6h','','','','7h','','','','8h','','','','9h','','','','10h','','','','11h','','','','12h','','','','13h','','','','14h','','','','15h','','','','16h','','','','17h','','','','18h','','','','19h','','','','20h','','','','21h','','','','22h','','','','23h','','','');
$plot->xAxis->setLabelText($hours);
$graph->add($plot);
vous avez une idée comment jpourrai faire, et surtout où mettre le code qui permet d'ajouter le label:
$group=new PlotGroup();
$group->setPadding(40,40);
$plot = new LinePlot($sactif);
$plot->setColor($green);
$group->add($plot);
$plot = new LinePlot($sinactif);
$plot->setColor($red);
$group->add($plot);
$plot = new LinePlot($svalid);
$plot->setColor($blue);
$group->add($plot);
$graph->add($group);
$graph->draw();
j'ai besoin d'afficher des courbes dans un site, pour ce faire j'utilise artichow. Je n'ai pas eu de problème à définir le Label de l'axe x quand je ne dessinais qu'une seule courbe, mais j'ai eu besoin d'en dessiner plusieurs dans le même graphe, et là la méthode pour définir le label ne fonctionne plus.
voici le code que j'ai utilisé avant et qui marchait à merveille:
$hours=array('0h','','','','1h','','','','2h','','','','3h','','','','4h','','','','5h','','','','6h','','','','7h','','','','8h','','','','9h','','','','10h','','','','11h','','','','12h','','','','13h','','','','14h','','','','15h','','','','16h','','','','17h','','','','18h','','','','19h','','','','20h','','','','21h','','','','22h','','','','23h','','','');
$plot->xAxis->setLabelText($hours);
$graph->add($plot);
vous avez une idée comment jpourrai faire, et surtout où mettre le code qui permet d'ajouter le label:
$group=new PlotGroup();
$group->setPadding(40,40);
$plot = new LinePlot($sactif);
$plot->setColor($green);
$group->add($plot);
$plot = new LinePlot($sinactif);
$plot->setColor($red);
$group->add($plot);
$plot = new LinePlot($svalid);
$plot->setColor($blue);
$group->add($plot);
$graph->add($group);
$graph->draw();
A voir également:
- Label d'abcisses sous artichow
- Label printer logiciel - Télécharger - Outils professionnels
- Ronyasoft cd dvd label maker - Télécharger - Photo & Graphisme
- Barcode Label Printing Software TFORMER - Télécharger - Bureautique
- Cd label designer - Télécharger - Impression
- Label maker - Télécharger - Photo & Graphisme