You are here

class Yaxis in Charts 8.3

Same name and namespace in other branches
  1. 8 modules/charts_highcharts/src/Settings/Highcharts/Yaxis.php \Drupal\charts_highcharts\Settings\Highcharts\Yaxis

Y Axis.

Hierarchy

  • class \Drupal\charts_highcharts\Settings\Highcharts\Yaxis implements \Drupal\charts_highcharts\Settings\Highcharts\JsonSerializable

Expanded class hierarchy of Yaxis

1 file declares its use of Yaxis
Highcharts.php in modules/charts_highcharts/src/Plugin/chart/Highcharts.php

File

modules/charts_highcharts/src/Settings/Highcharts/Yaxis.php, line 8

Namespace

Drupal\charts_highcharts\Settings\Highcharts
View source
class Yaxis implements \JsonSerializable {
  private $title;
  private $labels = '';
  private $plotBands = NULL;
  private $min;
  private $max;
  private $categories = NULL;
  private $tickInterval;
  private $tickmarkPlacement;
  private $showFirstLabel;
  private $startOnTick;
  private $showLastLabel;
  private $endOnTick;
  private $gridLineInterpolation = 'circle';

  // Default is 0 per https://api.highcharts.com/highcharts/yAxis.lineWidth .
  private $lineWidth = 0;

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

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

  /**
   * Get Labels.
   *
   * @return string
   *   Labels.
   */
  public function getLabels() {
    return $this->labels;
  }

  /**
   * Set Labels.
   *
   * @param string $labels
   *   Labels.
   */
  public function setLabels($labels) {
    $this->labels = $labels;
  }

  /**
   * @return array
   */
  public function getPlotBands() {
    return $this->plotBands;
  }

  /**
   * @param array $plotBands
   */
  public function setPlotBands($plotBands) {
    $this->plotBands = $plotBands;
  }

  /**
   * @return float
   */
  public function getMin() {
    return $this->min;
  }

  /**
   * @param float $min
   */
  public function setMin(float $min) {
    $this->min = $min;
  }

  /**
   * @return float
   */
  public function getMax() {
    return $this->max;
  }

  /**
   * @param float $max
   */
  public function setMax(float $max) {
    $this->max = $max;
  }

  /**
   * Get Categories.
   *
   * @return array
   *   Categories.
   */
  public function getCategories() {
    return $this->categories;
  }

  /**
   * Set Categories.
   *
   * @param mixed $categories
   *   Categories.
   */
  public function setCategories($categories) {
    $this->categories = $categories;
  }

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

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

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

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

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

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

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

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

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

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

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

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

  /**
   * @return int
   */
  public function getLineWidth() {
    return $this->lineWidth;
  }

  /**
   * @param int $lineWidth
   */
  public function setLineWidth($lineWidth) {
    $this->lineWidth = $lineWidth;
  }

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

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

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

}

Members

Namesort descending Modifiers Type Description Overrides
Yaxis::$categories private property
Yaxis::$endOnTick private property
Yaxis::$gridLineInterpolation private property
Yaxis::$labels private property
Yaxis::$lineWidth private property
Yaxis::$max private property
Yaxis::$min private property
Yaxis::$plotBands private property
Yaxis::$showFirstLabel private property
Yaxis::$showLastLabel private property
Yaxis::$startOnTick private property
Yaxis::$tickInterval private property
Yaxis::$tickmarkPlacement private property
Yaxis::$title private property
Yaxis::getCategories public function Get Categories.
Yaxis::getEndOnTick public function
Yaxis::getGridLineInterpolation public function
Yaxis::getLabels public function Get Labels.
Yaxis::getLineWidth public function
Yaxis::getMax public function
Yaxis::getMin public function
Yaxis::getPlotBands public function
Yaxis::getShowFirstLabel public function
Yaxis::getShowLastLabel public function
Yaxis::getStartOnTick public function
Yaxis::getTickInterval public function
Yaxis::getTickmarkPlacement public function
Yaxis::getTitle public function Get Title.
Yaxis::jsonSerialize public function Json Serialize.
Yaxis::setCategories public function Set Categories.
Yaxis::setEndOnTick public function
Yaxis::setGridLineInterpolation public function
Yaxis::setLabels public function Set Labels.
Yaxis::setLineWidth public function
Yaxis::setMax public function
Yaxis::setMin public function
Yaxis::setPlotBands public function
Yaxis::setShowFirstLabel public function
Yaxis::setShowLastLabel public function
Yaxis::setStartOnTick public function
Yaxis::setTickInterval public function
Yaxis::setTickmarkPlacement public function
Yaxis::setTitle public function Set Title.