scottharwell / GoogleCharts

CakePHP Plugin for Google Charts Javascript API
26 stars 30 forks source link

Need help resizing. #14

Closed paulleephp closed 9 years ago

paulleephp commented 10 years ago

How do i change the width and height using your plugin?

angelxmoreno commented 10 years ago

apparently you can not change the properties in the GoogleCharts class because the options array is private

angelxmoreno commented 10 years ago

I take it back, looking at the magic function __call() the options can be overwritten like so

$chart->options([
    'width' => 1200,
    'height' => 600
]);