$chart = new Highchart(Highchart::HIGHSTOCK); $chart->chart->renderTo = "container"; $chart->chart->type = "area"; $chart->rangeSelector->selected = 1; $chart->title->text = "AAPL Stock Price"; $chart->yAxis->reversed = 1; $chart->yAxis->showFirstLabel = false; $chart->yAxis->showLastLabel = 1; $chart->series[0]->name = "AAPL Stock Price"; $chart->series[0]->data = new HighchartJsExpr("data"); $chart->series[0]->threshold = null; $chart->series[0]->fillColor->linearGradient->x1 = 0; $chart->series[0]->fillColor->linearGradient->y1 = 1; $chart->series[0]->fillColor->linearGradient->x2 = 0; $chart->series[0]->fillColor->linearGradient->y2 = 0; $chart->series[0]->fillColor->stops = array( array( 0, new HighchartJsExpr("Highcharts.getOptions().colors[0]") ), array( 1, "rgba(0,0,0,0)" ) ); $chart->series[0]->tooltip->valueDecimals = 2;