class ChartData in Charts 8
Same name and namespace in other branches
- 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\CThreeView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ChartData:: |
private | property | ||
ChartData:: |
private | property | ||
ChartData:: |
private | property | ||
ChartData:: |
private | property | ||
ChartData:: |
public | function | ||
ChartData:: |
public | function | ||
ChartData:: |
public | function | ||
ChartData:: |
public | function | ||
ChartData:: |
public | function | ||
ChartData:: |
public | function | ||
ChartData:: |
public | function | ||
ChartData:: |
public | function | ||
ChartData:: |
public | function |