for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options;
/**
* @author Christophe Meneses
*/
class Trendlines
{
use ColorTrait;
use LineWidthTrait;
use OpacityTrait;
use PointSizeTrait;
use PointsVisibleTrait;
* For trendlines of type: 'polynomial', the degree of the polynomial (2 for quadratic, 3 for cubic, and so on).
* (The default degree may change from 3 to 2 in an upcoming release of Google Charts.).
*
* @var int
protected $degree;
* If set, the trendline will appear in the legend as this string.
* @var string
protected $labelInLegend;
* Whether to show the coefficient of determination in the legend or trendline tooltip.
* @var bool
protected $showR2;
* Whether the trendlines is 'linear' (the default), 'exponential', or 'polynomial'.
protected $type;
* Whether the trendline equation appears in the legend. (It will appear in the trendline tooltip.).
protected $visibleInLegend;
* @return $this
public function setVisibleInLegend(bool $visibleInLegend)
$this->visibleInLegend = $visibleInLegend;
return $this;
}
public function setDegree(int $degree)
$this->degree = $degree;
public function setLabelInLegend(string $labelInLegend)
$this->labelInLegend = $labelInLegend;
public function setShowR2(bool $showR2)
$this->showR2 = $showR2;
public function setType(string $type)
$this->type = $type;