$chart = new Highchart();
$chart->includeExtraScripts();
$chart->chart->renderTo = 'container';
$chart->data->table = 'freq';
$chart->data->startRow = 1;
$chart->data->endRow = 17;
$chart->data->endColumn = 7;
$chart->chart->polar = true;
$chart->chart->type = 'column';
$chart->title->text = 'Wind rose for South Shore Met Station, Oregon';
$chart->subtitle->text = 'Source: or.water.usgs.gov';
$chart->pane->size = '85%';
$chart->legend->reversed = true;
$chart->legend->align = 'right';
$chart->legend->verticalAlign = 'top';
$chart->legend->y = 100;
$chart->legend->layout = 'vertical';
$chart->xAxis->tickmarkPlacement = 'on';
$chart->yAxis->min = 0;
$chart->yAxis->endOnTick = false;
$chart->yAxis->showLastLabel = true;
$chart->yAxis->title->text = 'Frequency (%)';
$chart->yAxis->labels->formatter = new HighchartJsExpr("function () { return this.value + '%'; }");
$chart->tooltip->valueSuffix = '%';
$chart->tooltip->followPointer = true;
$chart->plotOptions->series->stacking = 'normal';
$chart->plotOptions->series->shadow = false;
$chart->plotOptions->series->groupPadding = 0;
$chart->plotOptions->series->pointPlacement = 'on';