public function Chart::setWidth in Charts 8.3
Set Width.
Parameters
int|null $width: Width.
File
- modules/
charts_highcharts/ src/ Settings/ Highcharts/ Chart.php, line 58
Class
- Chart
- Chart.
Namespace
Drupal\charts_highcharts\Settings\HighchartsCode
public function setWidth($width = NULL) {
if (empty($width)) {
$this->width = NULL;
}
else {
$this->width = (int) $width;
}
}