for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options\Timeline;
use CMEN\GoogleChartsBundle\GoogleCharts\Options\BasicChartOptions;
use CMEN\GoogleChartsBundle\GoogleCharts\Options\BasicTooltip;
use CMEN\GoogleChartsBundle\GoogleCharts\Options\ColorsTrait;
/**
* @author Christophe Meneses
*/
class TimelineOptions extends BasicChartOptions
{
use ColorsTrait;
* Whether display elements (e.g., the bars in a timeline) should obscure grid lines. If false, grid lines may be
* covered completely by display elements. If true, display elements may be altered to keep grid lines visible.
*
* @var bool
protected $avoidOverlappingGridLines;
* The background color for the main area of the chart. Can be either a simple HTML color string, for example :
* 'red' or '#00cc00'.
* @var string
protected $backgroundColor;
* @var Timeline
protected $timeline;
* @var BasicTooltip
protected $tooltip;
public function __construct()
parent::__construct();
$this->timeline = new Timeline();
$this->tooltip = new BasicTooltip();
}
public function getTimeline(): Timeline
return $this->timeline;
public function getTooltip(): BasicTooltip
return $this->tooltip;
* @return $this
public function setAvoidOverlappingGridLines(bool $avoidOverlappingGridLines)
$this->avoidOverlappingGridLines = $avoidOverlappingGridLines;
return $this;
public function setBackgroundColor(string $backgroundColor)
$this->backgroundColor = $backgroundColor;