diff --git a/htdocs/compta/facture/index.php b/htdocs/compta/facture/index.php index eb73132c69f..e96371ad4f4 100644 --- a/htdocs/compta/facture/index.php +++ b/htdocs/compta/facture/index.php @@ -192,10 +192,10 @@ function getPieChart($socid = 0) { $dolgraph = new DolGraph(); $dolgraph->SetData($dataseries); - $dolgraph->setShowLegend(1); + $dolgraph->setShowLegend(2); $dolgraph->setShowPercent(1); $dolgraph->SetType(['pie']); - $dolgraph->setWidth('100%'); + $dolgraph->setHeight('200'); $dolgraph->draw('idgraphthirdparties'); $result .= ''; diff --git a/htdocs/fourn/facture/index.php b/htdocs/fourn/facture/index.php index 3c223ce0837..494f5d2aa03 100644 --- a/htdocs/fourn/facture/index.php +++ b/htdocs/fourn/facture/index.php @@ -193,10 +193,10 @@ function getPieChart($socid = 0) { $dolgraph = new DolGraph(); $dolgraph->SetData($dataseries); - $dolgraph->setShowLegend(1); + $dolgraph->setShowLegend(2); $dolgraph->setShowPercent(1); $dolgraph->SetType(['pie']); - $dolgraph->setWidth('100%'); + $dolgraph->setHeight('200'); $dolgraph->draw('idgraphthirdparties'); $result .= '';