You are here

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\Chartjs
View 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

Namesort descending Modifiers Type Description Overrides
ChartjsStacking::$stacked private property Stacking option.
ChartjsStacking::getStacking public function Gets stacking chart option.
ChartjsStacking::jsonSerialize public function Json Serialize.
ChartjsStacking::setStacking public function Sets stacking chart option.