$chart = new Highchart(Highchart::HIGHSTOCK); $chart->chart->renderTo = "container"; $chart->title->text = "AAPL stock price by minute"; $chart->rangeSelector->buttons = array( array( 'type' => "hour", 'count' => 1, 'text' => "1h" ), array( 'type' => "day", 'count' => 1, 'text' => "1D" ), array( 'type' => "all", 'count' => 1, 'text' => "All" ) ); $chart->rangeSelector->selected = 1; $chart->rangeSelector->inputEnabled = false; $chart->series[] = array( 'name' => "AAPL", 'type' => "candlestick", 'data' => new HighchartJsExpr("data"), 'tooltip' => array( 'valueDecimals' => 2 ) );