$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->plotLines[] = array( 'value' => 0.6738, 'color' => "green", 'dashStyle' => "shortdash", 'width' => 2, 'label' => array( 'text' => "Last quarter minimum" ) ); $chart->yAxis->plotLines[] = array( 'value' => 0.7419, 'color' => "red", 'dashStyle' => "shortdash", 'width' => 2, 'label' => array( 'text' => "Last quarter maximum" ) ); $chart->series[] = array( 'name' => "USD to EUR", 'data' => new HighchartJsExpr("data"), 'tooltip' => array( 'valueDecimals' => 4 ) );