我正在使用 CodeIgniter 库(https://github.com/ronan-gloo/codeigniter-highcharts-library)来创建 Highcharts。一切正常,但变焦。
我正在尝试像这样设置缩放:
$this->highcharts->set_global(array('zoomType' => 'x')) ;
或这个
$this->highcharts->set_zoom_type('x');
但什么都行不通。
我正在使用 CodeIgniter 库(https://github.com/ronan-gloo/codeigniter-highcharts-library)来创建 Highcharts。一切正常,但变焦。
我正在尝试像这样设置缩放:
$this->highcharts->set_global(array('zoomType' => 'x')) ;
或这个
$this->highcharts->set_zoom_type('x');
但什么都行不通。
我从未使用过 CodeIgniter Highcharts 包装器,但根据它的文档(尤其是此处描述的段落:https ://github.com/ronan-gloo/codeigniter-highcharts-library#magic-methods )我会尝试使用类似的东西
$this->highcharts->set_chart(array('zoomType' => 'x'))
它应该产生类似于这样的 JSON:
{
chart: {
zoomType: 'x'
}
}