Code comment

This commit is contained in:
Laurent Destailleur 2017-05-31 11:51:38 +02:00
parent 145cb628cd
commit 10ac53077e

View File

@ -27,7 +27,13 @@
* Class to build graphs. * Class to build graphs.
* Usage is: * Usage is:
* $dolgraph=new DolGraph(); * $dolgraph=new DolGraph();
* $dolgraph->SetTitle($langs->transnoentities('Tracking_Projects_Pourcent').'<br>'.$langs->transnoentities('Tracking_IndicatorDefGraph').'%');
* $dolgraph->SetMaxValue(50);
* $dolgraph->SetData($data); * $dolgraph->SetData($data);
* $dolgraph->setShowLegend(1);
* $dolgraph->setShowPercent(1);
* $dolgraph->SetType(array('pie'));
* $dolgraph->setWidth('100%');
* $dolgraph->draw('idofgraph'); * $dolgraph->draw('idofgraph');
* print $dolgraph->show(); * print $dolgraph->show();
*/ */
@ -803,7 +809,7 @@ class DolGraph
{ {
global $artichow_defaultfont; global $artichow_defaultfont;
dol_syslog(get_class($this)."::draw_jflot this->type=".join(',',$this->type)); dol_syslog(get_class($this)."::draw_jflot this->type=".join(',',$this->type)." this->MaxValue=".$this->MaxValue);
if (empty($this->width) && empty($this->height)) if (empty($this->width) && empty($this->height))
{ {