You are here

class ChartjsOptions in Charts 8.3

Class ChartjsOptions.

@package Drupal\charts_chartjs\Settings\Chartjs

Hierarchy

  • class \Drupal\charts_chartjs\Settings\Chartjs\ChartjsOptions implements \Drupal\charts_chartjs\Settings\Chartjs\JsonSerializable

Expanded class hierarchy of ChartjsOptions

1 file declares its use of ChartjsOptions
Chartjs.php in modules/charts_chartjs/src/Plugin/chart/Chartjs.php

File

modules/charts_chartjs/src/Settings/Chartjs/ChartjsOptions.php, line 10

Namespace

Drupal\charts_chartjs\Settings\Chartjs
View source
class ChartjsOptions implements \JsonSerializable {

  /**
   * Scales object.
   *
   * @var mixed
   */
  private $scales;

  /**
   * Tooltops object.
   *
   * @var mixed
   */
  private $tooltips;

  /**
   * Legend object.
   *
   * @var mixed
   */
  private $legend;

  /**
   * Title object.
   *
   * @var mixed
   */
  private $title;

  /**
   * Gets scales object.
   *
   * @return mixed
   *   Scales object.
   */
  public function getScales() {
    return $this->scales;
  }

  /**
   * Sets stacking chart option.
   *
   * @param mixed $scales
   *   Scales option.
   */
  public function setScales($scales) {
    $this->scales = $scales;
  }

  /**
   * @return mixed
   */
  public function getTooltips() {
    return $this->tooltips;
  }

  /**
   * @param mixed $tooltips
   */
  public function setTooltips($tooltips) {
    $this->tooltips = $tooltips;
  }

  /**
   * @return mixed
   */
  public function getLegend() {
    return $this->legend;
  }

  /**
   * @param mixed $legend
   */
  public function setLegend($legend) {
    $this->legend = $legend;
  }

  /**
   * @return mixed
   */
  public function getTitle() {
    return $this->title;
  }

  /**
   * @param mixed $title
   */
  public function setTitle($title) {
    $this->title = $title;
  }

  /**
   * Json Serialize.
   *
   * @return array
   *   Json Serialize.
   */
  public function jsonSerialize() {
    $vars = get_object_vars($this);
    return $vars;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ChartjsOptions::$legend private property Legend object.
ChartjsOptions::$scales private property Scales object.
ChartjsOptions::$title private property Title object.
ChartjsOptions::$tooltips private property Tooltops object.
ChartjsOptions::getLegend public function
ChartjsOptions::getScales public function Gets scales object.
ChartjsOptions::getTitle public function
ChartjsOptions::getTooltips public function
ChartjsOptions::jsonSerialize public function Json Serialize.
ChartjsOptions::setLegend public function
ChartjsOptions::setScales public function Sets stacking chart option.
ChartjsOptions::setTitle public function
ChartjsOptions::setTooltips public function