You are here

class ChartjsChart in Charts 8.3

Class ChartjsChart.

@package Drupal\charts_google\Settings\Google

Hierarchy

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

Expanded class hierarchy of ChartjsChart

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

File

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

Namespace

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

  /**
   * For Chart.js Charts, this option specifies the type.
   *
   * @var mixed
   */
  private $type;

  /**
   * For Chart.js Charts, this option specifies the data object.
   *
   * @var mixed
   */
  private $data;

  /**
   * For Chart.js Charts, this option specifies the options object.
   *
   * @var mixed
   */
  private $options;

  /**
   * Scale color ranges.
   *
   * @var boolean
   */
  private $scaleColorRanges;

  /**
   * For gauge range.
   *
   * @var mixed
   */
  private $range;

  /**
   * Get Type.
   *
   * @return mixed
   *   Type.
   */
  public function getType() {
    return $this->type;
  }

  /**
   * Set Type.
   *
   * @param mixed $type
   *   Type.
   */
  public function setType($type) {
    $this->type = $type;
  }

  /**
   * Get Data.
   *
   * @return mixed
   *   Data.
   */
  public function getData() {
    return $this->data;
  }

  /**
   * Set Data.
   *
   * @param mixed $data
   *   Data.
   */
  public function setData($data) {
    $this->data = $data;
  }

  /**
   * Get Options.
   *
   * @return mixed
   *   Options.
   */
  public function getOptions() {
    return $this->options;
  }

  /**
   * Set Options.
   *
   * @param mixed $options
   *   Options.
   */
  public function setOptions($options) {
    $this->options = $options;
  }

  /**
   * Gets stacking chart option.
   *
   * @return mixed
   *   Scale color ranges.
   */
  public function getScaleColorRanges() {
    return $this->scaleColorRanges;
  }

  /**
   * Sets scale color options.
   *
   * @param mixed $scaleColorRanges
   *   Scale color options.
   */
  public function setScaleColorRanges($scaleColorRanges) {
    $this->scaleColorRanges = $scaleColorRanges;
  }

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

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

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

}

Members

Namesort descending Modifiers Type Description Overrides
ChartjsChart::$data private property For Chart.js Charts, this option specifies the data object.
ChartjsChart::$options private property For Chart.js Charts, this option specifies the options object.
ChartjsChart::$range private property For gauge range.
ChartjsChart::$scaleColorRanges private property Scale color ranges.
ChartjsChart::$type private property For Chart.js Charts, this option specifies the type.
ChartjsChart::getData public function Get Data.
ChartjsChart::getOptions public function Get Options.
ChartjsChart::getRange public function
ChartjsChart::getScaleColorRanges public function Gets stacking chart option.
ChartjsChart::getType public function Get Type.
ChartjsChart::jsonSerialize public function Json Serialize.
ChartjsChart::setData public function Set Data.
ChartjsChart::setOptions public function Set Options.
ChartjsChart::setRange public function
ChartjsChart::setScaleColorRanges public function Sets scale color options.
ChartjsChart::setType public function Set Type.