class ChartjsOptions in Charts 8.3
Class ChartjsOptions.
@package Drupal\charts_chartjs\Settings\Chartjs
Hierarchy
- class \Drupal\charts_chartjs\Settings\Chartjs\ChartjsOptions implements \Drupal\charts_chartjs\Settings\Chartjs\JsonSerializable
Expanded class hierarchy of ChartjsOptions
1 file declares its use of ChartjsOptions
- Chartjs.php in modules/
charts_chartjs/ src/ Plugin/ chart/ Chartjs.php
File
- modules/
charts_chartjs/ src/ Settings/ Chartjs/ ChartjsOptions.php, line 10
Namespace
Drupal\charts_chartjs\Settings\ChartjsView source
class ChartjsOptions implements \JsonSerializable {
/**
* Scales object.
*
* @var mixed
*/
private $scales;
/**
* Tooltops object.
*
* @var mixed
*/
private $tooltips;
/**
* Legend object.
*
* @var mixed
*/
private $legend;
/**
* Title object.
*
* @var mixed
*/
private $title;
/**
* Gets scales object.
*
* @return mixed
* Scales object.
*/
public function getScales() {
return $this->scales;
}
/**
* Sets stacking chart option.
*
* @param mixed $scales
* Scales option.
*/
public function setScales($scales) {
$this->scales = $scales;
}
/**
* @return mixed
*/
public function getTooltips() {
return $this->tooltips;
}
/**
* @param mixed $tooltips
*/
public function setTooltips($tooltips) {
$this->tooltips = $tooltips;
}
/**
* @return mixed
*/
public function getLegend() {
return $this->legend;
}
/**
* @param mixed $legend
*/
public function setLegend($legend) {
$this->legend = $legend;
}
/**
* @return mixed
*/
public function getTitle() {
return $this->title;
}
/**
* @param mixed $title
*/
public function setTitle($title) {
$this->title = $title;
}
/**
* Json Serialize.
*
* @return array
* Json Serialize.
*/
public function jsonSerialize() {
$vars = get_object_vars($this);
return $vars;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ChartjsOptions:: |
private | property | Legend object. | |
ChartjsOptions:: |
private | property | Scales object. | |
ChartjsOptions:: |
private | property | Title object. | |
ChartjsOptions:: |
private | property | Tooltops object. | |
ChartjsOptions:: |
public | function | ||
ChartjsOptions:: |
public | function | Gets scales object. | |
ChartjsOptions:: |
public | function | ||
ChartjsOptions:: |
public | function | ||
ChartjsOptions:: |
public | function | Json Serialize. | |
ChartjsOptions:: |
public | function | ||
ChartjsOptions:: |
public | function | Sets stacking chart option. | |
ChartjsOptions:: |
public | function | ||
ChartjsOptions:: |
public | function |