You are here

class Xaxis in Charts 8.3

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

X Axis.

Hierarchy

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

Expanded class hierarchy of Xaxis

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

File

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

Namespace

Drupal\charts_highcharts\Settings\Highcharts
View source
class Xaxis implements \JsonSerializable {
  private $categories = [];
  private $title;
  private $labels;
  private $tickmarkPlacement;
  private $min;
  private $max;
  private $tickInterval;

  // Default is 1 per https://api.highcharts.com/highcharts/xAxis.lineWidth .
  private $lineWidth = 1;

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

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

  /**
   * 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 mixed
   *   Labels.
   */
  public function getLabels() {
    return $this->labels;
  }

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

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

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

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

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

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

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

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

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

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

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

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

}

Members

Namesort descending Modifiers Type Description Overrides
Xaxis::$categories private property
Xaxis::$labels private property
Xaxis::$lineWidth private property
Xaxis::$max private property
Xaxis::$min private property
Xaxis::$tickInterval private property
Xaxis::$tickmarkPlacement private property
Xaxis::$title private property
Xaxis::getCategories public function Get Categories.
Xaxis::getLabels public function Get Labels.
Xaxis::getLineWidth public function
Xaxis::getMax public function
Xaxis::getMin public function
Xaxis::getTickInterval public function
Xaxis::getTickmarkPlacement public function
Xaxis::getTitle public function Get Title.
Xaxis::jsonSerialize public function Json Serialize.
Xaxis::setCategories public function Set Categories.
Xaxis::setLabels public function Set Labels.
Xaxis::setLineWidth public function
Xaxis::setMax public function
Xaxis::setMin public function
Xaxis::setTickInterval public function
Xaxis::setTickmarkPlacement public function
Xaxis::setTitle public function Set Title.