You are here

ChartAxis.php in Charts 8.3

File

modules/charts_c3/src/Settings/CThree/ChartAxis.php
View source
<?php

namespace Drupal\charts_c3\Settings\CThree;


/**
 * Chart Axis.
 */
class ChartAxis implements \JsonSerializable {
  private $rotated = FALSE;
  private $x = [
    'type' => 'category',
  ];

  /**
   * Get Rotated.
   *
   * @return mixed
   *   Rotated.
   */
  public function getRotated() {
    return $this->rotated;
  }

  /**
   * Set Rotated.
   *
   * @param mixed $rotated
   *   Rotated.
   */
  public function setRotated($rotated) {
    $this->rotated = $rotated;
  }

  /**
   * Get X.
   *
   * @return mixed $x
   *   Data for X Axis.
   */
  public function getX() {
    return $this->x;
  }

  /**
   * Set X.
   *
   * @param mixed $x
   *   Data for X Axis.
   */
  public function setX($x) {
    $this->x = $x;
  }

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

}

Classes

Namesort descending Description
ChartAxis Chart Axis.