class ChartjsTicks in Charts 8.3
Class ChartjsChart.
@package Drupal\charts_chartjs\Settings\Chartjs
Hierarchy
- class \Drupal\charts_chartjs\Settings\Chartjs\ChartjsTicks implements \Drupal\charts_chartjs\Settings\Chartjs\JsonSerializable
Expanded class hierarchy of ChartjsTicks
1 file declares its use of ChartjsTicks
- Chartjs.php in modules/
charts_chartjs/ src/ Plugin/ chart/ Chartjs.php
File
- modules/
charts_chartjs/ src/ Settings/ Chartjs/ ChartjsTicks.php, line 10
Namespace
Drupal\charts_chartjs\Settings\ChartjsView source
class ChartjsTicks implements \JsonSerializable {
/**
* ...
*
* @var mixed
*/
private $ticks;
/**
* Set Y-axis as stacked or not.
*
* @var bool
*/
private $stacked;
/**
* @return mixed
*/
public function getTicks() {
return $this->ticks;
}
/**
* @param mixed $ticks
*/
public function setTicks($ticks) {
$this->ticks = $ticks;
}
/**
* @return bool
*/
public function isStacked() {
return $this->stacked;
}
/**
* @param bool $stacked
*/
public function setStacked(bool $stacked) {
$this->stacked = $stacked;
}
/**
* Json Serialize.
*
* @return array
* Json Serialize.
*/
public function jsonSerialize() {
$vars = get_object_vars($this);
return $vars;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ChartjsTicks:: |
private | property | Set Y-axis as stacked or not. | |
ChartjsTicks:: |
private | property | ... | |
ChartjsTicks:: |
public | function | ||
ChartjsTicks:: |
public | function | ||
ChartjsTicks:: |
public | function | Json Serialize. | |
ChartjsTicks:: |
public | function | ||
ChartjsTicks:: |
public | function |