You are here

class ChartData in Charts 8

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

Hierarchy

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

Expanded class hierarchy of ChartData

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

File

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

Namespace

Drupal\charts_c3\Settings\CThree
View source
class ChartData implements \JsonSerializable {
  private $columns = array();
  private $type;
  private $labels = TRUE;
  private $x = 'x';

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

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

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

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

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

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

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

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

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

}

Members

Namesort descending Modifiers Type Description Overrides
ChartData::$columns private property
ChartData::$labels private property
ChartData::$type private property
ChartData::$x private property
ChartData::getColumns public function
ChartData::getLabels public function
ChartData::getType public function
ChartData::getX public function
ChartData::jsonSerialize public function
ChartData::setColumns public function
ChartData::setLabels public function
ChartData::setType public function
ChartData::setX public function