$chart = new Highchart(Highchart::HIGHSTOCK); $chart->includeExtraScripts(); $chart->chart->type = 'candlestick'; $chart->chart->zoomType = 'x'; $chart->navigator->adaptToUpdatedData = false; $chart->navigator->series->data = new HighchartJsExpr('data'); $chart->scrollbar->liveRedraw = false; $chart->title->text = 'AAPL history by the minute from 1998 to 2011'; $chart->subtitle->text = 'Displaying 1.7 million data points in Highcharts Stock by async server loading'; $chart->rangeSelector->buttons = array( array( 'type' => 'hour', 'count' => 1, 'text' => '1h' ), array( 'type' => 'day', 'count' => 1, 'text' => '1d' ), array( 'type' => 'month', 'count' => 1, 'text' => '1m' ), array( 'type' => 'year', 'count' => 1, 'text' => '1y' ), array( 'type' => 'all', 'text' => 'All' ) ); $chart->rangeSelector->inputEnabled = false; $chart->rangeSelector->selected = 4; $chart->xAxis->events->afterSetExtremes = new HighchartJsExpr('afterSetExtremes'); $chart->xAxis->minRange = 3600 * 1000; $chart->series[] = array( 'data' => new HighchartJsExpr('data'), 'dataGrouping' => array('enabled' => false) );