class ChartjsStacking in Charts 8.3
Class ChartjsStacking.
@package Drupal\charts_chartjs\Settings\Chartjs
Hierarchy
- class \Drupal\charts_chartjs\Settings\Chartjs\ChartjsStacking implements \Drupal\charts_chartjs\Settings\Chartjs\JsonSerializable
Expanded class hierarchy of ChartjsStacking
1 file declares its use of ChartjsStacking
- Chartjs.php in modules/
charts_chartjs/ src/ Plugin/ chart/ Chartjs.php
File
- modules/
charts_chartjs/ src/ Settings/ Chartjs/ ChartjsStacking.php, line 10
Namespace
Drupal\charts_chartjs\Settings\ChartjsView source
class ChartjsStacking implements \JsonSerializable {
/**
* Stacking option.
*
* @var boolean
*/
private $stacked;
/**
* Gets stacking chart option.
*
* @return mixed
* Stacking option.
*/
public function getStacking() {
return $this->stacked;
}
/**
* Sets stacking chart option.
*
* @param mixed $stacked
* Stacking option.
*/
public function setStacking($stacked) {
$this->stacked = $stacked;
}
/**
* Json Serialize.
*
* @return array
* Json Serialize.
*/
public function jsonSerialize() {
$vars = get_object_vars($this);
return $vars;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ChartjsStacking:: |
private | property | Stacking option. | |
ChartjsStacking:: |
public | function | Gets stacking chart option. | |
ChartjsStacking:: |
public | function | Json Serialize. | |
ChartjsStacking:: |
public | function | Sets stacking chart option. |