| 1 | <?php |
||
| 8 | trait ThemeTrait |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * A theme is a set of predefined option values that work together to achieve a specific chart behavior or visual |
||
| 12 | * effect. Currently only one theme is available : |
||
| 13 | * 'maximized' - Maximizes the area of the chart, and draws the legend and all of the labels inside the chart area. |
||
| 14 | * Sets the following options: |
||
| 15 | * chartArea: {width: '100%', height: '100%'}, |
||
| 16 | * legend: {position: 'in'}, |
||
| 17 | * titlePosition: 'in', axisTitlesPosition: 'in', |
||
| 18 | * hAxis: {textPosition: 'in'}, vAxis: {textPosition: 'in'}. |
||
| 19 | * |
||
| 20 | * Default: null |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $theme; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param string $theme |
||
| 28 | * |
||
| 29 | * @return $this |
||
| 30 | */ |
||
| 31 | public function setTheme($theme) |
||
| 37 | } |
||
| 38 |