/** * Returns the default properties for bar graphs * * @returns Array Associative array with default properties. */ public function getDefaultArgs() { $args = parent::getDefaultArgs(); // Set scatter-specific default arguments $args["plots"] = true; $args["connected"] = false; $args["plotsize"] = 3; // Check whether the user has set defaults in the LocalSettings.php file $name = "wgPChart4mw" . ucfirst($this->type) . "Defaults"; if (array_key_exists($name, $GLOBALS)) { $args = $this->parseArgs($GLOBALS[$name], $args); } return $args; }
/** * Returns the default properties for radar graphs * * @returns Array Associative array with default properties. */ public function getDefaultArgs() { $args = parent::getDefaultArgs(); // Set radar-specific default arguments $args["filled"] = false; $args["striped"] = false; $args["stripecolor"] = array(200, 200, 200); $args["opacity"] = 50; // Check whether the user has set defaults in the LocalSettings.php file $name = "wgPChart4mw" . ucfirst($this->type) . "Defaults"; if (array_key_exists($name, $GLOBALS)) { $args = $this->parseArgs($GLOBALS[$name], $args); } return $args; }
/** * Returns the default properties for pie graphs * * @returns Array Associative array with default properties. */ public function getDefaultArgs() { $args = parent::getDefaultArgs(); // Set pie-specific default arguments $args["percentages"] = true; $args["pielabels"] = false; $args["labels"] = false; $args["exploded"] = false; $args["3d"] = false; // Check whether the user has set defaults in the LocalSettings.php file $name = "wgPChart4mw" . ucfirst($this->type) . "Defaults"; if (array_key_exists($name, $GLOBALS)) { $args = $this->parseArgs($GLOBALS[$name], $args); } return $args; }