You are here

class ChartjsTicks in Charts 8.3

Class ChartjsChart.

@package Drupal\charts_chartjs\Settings\Chartjs

Hierarchy

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

Expanded class hierarchy of ChartjsTicks

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

File

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

Namespace

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

  /**
   * ...
   *
   * @var mixed
   */
  private $ticks;

  /**
   * Set Y-axis as stacked or not.
   *
   * @var bool
   */
  private $stacked;

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

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

  /**
   * @return bool
   */
  public function isStacked() {
    return $this->stacked;
  }

  /**
   * @param bool $stacked
   */
  public function setStacked(bool $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
ChartjsTicks::$stacked private property Set Y-axis as stacked or not.
ChartjsTicks::$ticks private property ...
ChartjsTicks::getTicks public function
ChartjsTicks::isStacked public function
ChartjsTicks::jsonSerialize public function Json Serialize.
ChartjsTicks::setStacked public function
ChartjsTicks::setTicks public function