class Xaxis in Charts 8.3
Same name and namespace in other branches
- 8 modules/charts_highcharts/src/Settings/Highcharts/Xaxis.php \Drupal\charts_highcharts\Settings\Highcharts\Xaxis
X Axis.
Hierarchy
- class \Drupal\charts_highcharts\Settings\Highcharts\Xaxis implements \Drupal\charts_highcharts\Settings\Highcharts\JsonSerializable
Expanded class hierarchy of Xaxis
1 file declares its use of Xaxis
- Highcharts.php in modules/
charts_highcharts/ src/ Plugin/ chart/ Highcharts.php
File
- modules/
charts_highcharts/ src/ Settings/ Highcharts/ Xaxis.php, line 8
Namespace
Drupal\charts_highcharts\Settings\HighchartsView source
class Xaxis implements \JsonSerializable {
private $categories = [];
private $title;
private $labels;
private $tickmarkPlacement;
private $min;
private $max;
private $tickInterval;
// Default is 1 per https://api.highcharts.com/highcharts/xAxis.lineWidth .
private $lineWidth = 1;
/**
* Get Categories.
*
* @return array
* Categories.
*/
public function getCategories() {
return $this->categories;
}
/**
* Set Categories.
*
* @param mixed $categories
* Categories.
*/
public function setCategories($categories) {
$this->categories = $categories;
}
/**
* Get Title.
*
* @return mixed
* Title.
*/
public function getTitle() {
return $this->title;
}
/**
* Set Title.
*
* @param mixed $title
* Title.
*/
public function setTitle($title) {
$this->title = $title;
}
/**
* Get Labels.
*
* @return mixed
* Labels.
*/
public function getLabels() {
return $this->labels;
}
/**
* Set Labels.
*
* @param mixed $labels
* Labels.
*/
public function setLabels($labels) {
$this->labels = $labels;
}
/**
* @return mixed
*/
public function getTickmarkPlacement() {
return $this->tickmarkPlacement;
}
/**
* @param mixed $tickmarkPlacement
*/
public function setTickmarkPlacement($tickmarkPlacement) {
$this->tickmarkPlacement = $tickmarkPlacement;
}
/**
* @return int
*/
public function getMin() {
return $this->min;
}
/**
* @param int $min
*/
public function setMin($min) {
$this->min = $min;
}
/**
* @return int
*/
public function getMax() {
return $this->max;
}
/**
* @param int $max
*/
public function setMax($max) {
$this->max = $max;
}
/**
* @return int
*/
public function getTickInterval() {
return $this->tickInterval;
}
/**
* @param int $tickInterval
*/
public function setTickInterval($tickInterval) {
$this->tickInterval = $tickInterval;
}
/**
* @return int
*/
public function getLineWidth() {
return $this->lineWidth;
}
/**
* @param int $lineWidth
*/
public function setLineWidth($lineWidth) {
$this->lineWidth = $lineWidth;
}
/**
* Json Serialize.
*
* @return array
* Json Serialize.
*/
public function jsonSerialize() {
$vars = get_object_vars($this);
return $vars;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Xaxis:: |
private | property | ||
Xaxis:: |
private | property | ||
Xaxis:: |
private | property | ||
Xaxis:: |
private | property | ||
Xaxis:: |
private | property | ||
Xaxis:: |
private | property | ||
Xaxis:: |
private | property | ||
Xaxis:: |
private | property | ||
Xaxis:: |
public | function | Get Categories. | |
Xaxis:: |
public | function | Get Labels. | |
Xaxis:: |
public | function | ||
Xaxis:: |
public | function | ||
Xaxis:: |
public | function | ||
Xaxis:: |
public | function | ||
Xaxis:: |
public | function | ||
Xaxis:: |
public | function | Get Title. | |
Xaxis:: |
public | function | Json Serialize. | |
Xaxis:: |
public | function | Set Categories. | |
Xaxis:: |
public | function | Set Labels. | |
Xaxis:: |
public | function | ||
Xaxis:: |
public | function | ||
Xaxis:: |
public | function | ||
Xaxis:: |
public | function | ||
Xaxis:: |
public | function | ||
Xaxis:: |
public | function | Set Title. |