$chart = new Highchart(Highchart::HIGHSTOCK); $chart->chart->renderTo = "container"; $chart->rangeSelector->selected = 1; $chart->title->text = "USD to EUR exchange rate"; $chart->yAxis->title->text = "Exchange rate"; $chart->yAxis->plotBands[] = array( 'from' => 0.6738, 'to' => 0.7419, 'color' => "rgba(68, 170, 213, 0.2)", 'label' => array( 'text' => "Last quarter's value range" ) ); $chart->series[] = array( 'name' => "USD to EUR", 'data' => new HighchartJsExpr("data"), 'tooltip' => array( 'valueDecimals' => 4 ) );