ObHighchartsBundle
ObHighchartsBundle copied to clipboard
$highchart->setOptions(array("global" => array("timezone" => "..."))); doesn't work
Using
$highchart = new Highchart();
$highchart->setOptions(array("global" => array("timezone" => "Europe/Rome")));
...
don't produce any Javascript code of type
Highcharts.setOptions({
global: {
timezone: 'Europe/Rome'
}
});
Highcharts.chart('container', {
...
(I'm using v1.5 of OB\Highchart)
For now, getTimezoneOffset is not supported by the bundle. See #94
In the meantime, you can use timezoneOffset like this:
$highchart = new Highchart();
$highchart->global->timezoneOffset(60); // 60 minutes offset