trait ThemeTrait (View source)

Methods

theme( string $theme)

A theme is a set of predefined option values that work together to achieve a specific chart behavior or visual effect.

Details

at line 26
Chart theme( string $theme)

A theme is a set of predefined option values that work together to achieve a specific chart behavior or visual effect.

Currently only one theme is available: 'maximized' - Maximizes the area of the chart, and draws the legend and all of the labels inside the chart area. Sets the following options:

chartArea: {width: '100%', height: '100%'}, legend: {position: 'in'}, titlePosition: 'in', axisTitlesPosition: 'in', hAxis: {textPosition: 'in'}, vAxis: {textPosition: 'in'}

Parameters

string $theme

Return Value

Chart

Exceptions

InvalidConfigValue