You are here

class ChartAxis in Charts 8

Same name and namespace in other branches
  1. 8.3 modules/charts_c3/src/Settings/CThree/ChartAxis.php \Drupal\charts_c3\Settings\CThree\ChartAxis

Hierarchy

  • class \Drupal\charts_c3\Settings\CThree\ChartAxis implements \Drupal\charts_c3\Settings\CThree\JsonSerializable

Expanded class hierarchy of ChartAxis

1 file declares its use of ChartAxis
charts_c3.module in modules/charts_c3/charts_c3.module
Charts module integration with C3 library.

File

modules/charts_c3/src/Settings/CThree/ChartAxis.php, line 5

Namespace

Drupal\charts_c3\Settings\CThree
View source
class ChartAxis implements \JsonSerializable {
  private $rotated = FALSE;
  private $x = array(
    'type' => 'category',
  );

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

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

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

}

Members

Namesort descending Modifiers Type Description Overrides
ChartAxis::$rotated private property
ChartAxis::$x private property
ChartAxis::getRotated public function
ChartAxis::jsonSerialize public function
ChartAxis::setRotated public function