$chart = new Highchart(Highchart::HIGHSTOCK); $chart->chart->renderTo = "container"; $chart->chart->alignTicks = false; $chart->rangeSelector->selected = 1; $chart->title->text = "AAPL Historical"; $leftYaxis = new HighchartOption(); $leftYaxis->title->text = "OHLC"; $leftYaxis->height = 200; $leftYaxis->lineWidth = 2; $rightYaxis = new HighchartOption(); $rightYaxis->title->text = "Volume"; $rightYaxis->top = 300; $rightYaxis->height = 100; $rightYaxis->offset = 0; $rightYaxis->lineWidth = 2; $chart->yAxis = array( $leftYaxis, $rightYaxis ); $chart->series[] = array( 'type' => "candlestick", 'name' => "AAPL", 'data' => new HighchartJsExpr("ohlc"), 'dataGrouping' => array( 'units' => new HighchartJsExpr("groupingUnits") ) ); $chart->series[] = array( 'type' => "column", 'name' => "Volume", 'data' => new HighchartJsExpr("volume"), 'yAxis' => 1, 'dataGrouping' => array( 'units' => new HighchartJsExpr("groupingUnits") ) );