From d8b01d9a3301d1c648357556d07da2ed4add293d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 4 Dec 2020 22:12:20 +0100 Subject: [PATCH] Fix chart is default graph lib --- htdocs/core/class/dolgraph.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/dolgraph.class.php b/htdocs/core/class/dolgraph.class.php index 0ff627ba20c..1f5cc82825e 100644 --- a/htdocs/core/class/dolgraph.class.php +++ b/htdocs/core/class/dolgraph.class.php @@ -41,7 +41,7 @@ class DolGraph { public $type = array(); // Array with type of each series. Example: array('bars', 'lines', ...) public $mode = 'side'; // Mode bars graph: side, depth - private $_library = 'jflot'; // Graphic library to use (jflot, artichow) + private $_library = 'chart'; // Graphic library to use (jflot, chart, artichow) //! Array of data public $data; // Data of graph: array(array('abs1',valA1,valB1), array('abs2',valA2,valB2), ...) @@ -115,7 +115,7 @@ class DolGraph $this->_library = $library; if ($this->_library == 'auto') { - $this->_library = (empty($conf->global->MAIN_JS_GRAPH) ? 'jflot' : $conf->global->MAIN_JS_GRAPH); + $this->_library = (empty($conf->global->MAIN_JS_GRAPH) ? 'chart' : $conf->global->MAIN_JS_GRAPH); } }