We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Datamap wrapper for https://github.com/markmarkoh/datamaps
Extends: Control » Renderable
Get/Set configuration.
Definition: public function conf($name, $value=null)
public function conf($name, $value=null)
Returns: mixed If value is given, return $this, else returns the data for 'key'
mixed
Parameters:
string $name config key
string $name
mixed $value Optional value
mixed $value
OVERRIDE Control::PreRender
Sets the color for a country.
Definition: public function setColor($country_code, $color, $tooltip=false)
public function setColor($country_code, $color, $tooltip=false)
Returns: static
static
string $country_code Country code (US, DE,...)
string $country_code
string $color HTML color
string $color
string $tooltip Optional tooltip
string $tooltip
Sets a color range for the datamap.
Definition: public function setColorRange($range)
public function setColorRange($range)
\ScavixWDF\Base\Color\ColorRange $range
Sets the value for a country. Note: This can only be used if a color range has been set with Datamap::setColorRange
Definition: public function setValue($country_code, $value, $tooltip=false)
public function setValue($country_code, $value, $tooltip=false)
string $country_code Country Code
float|int $value The value, see ColorRange::fromValue
float|int $value