Update dolgraph.class.php

jflot can't manage more than 2 bars but can manage more than 3 lines.
This commit is contained in:
BENKE Charles 2013-05-11 00:13:27 +03:00
parent d2257b9fb0
commit 4f28c3dd41

View File

@ -745,7 +745,8 @@ class DolGraph
$legends=array(); $legends=array();
$nblot=count($this->data[0])-1; // -1 to remove legend $nblot=count($this->data[0])-1; // -1 to remove legend
$firstlot=0; $firstlot=0;
if ($nblot > 2) $firstlot = ($nblot - 2); // We limit nblot to 2 because jflot can't manage more than 2 bars on same x // work with line but not with bars
//if ($nblot > 2) $firstlot = ($nblot - 2); // We limit nblot to 2 because jflot can't manage more than 2 bars on same x
$i=$firstlot; $i=$firstlot;
$serie=array(); $serie=array();