Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

Commit

Permalink
Correct indent
Browse files Browse the repository at this point in the history
  • Loading branch information
webeweb authored Oct 7, 2017
1 parent c1f7423 commit 6f67493
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,16 @@ In your controller ...

// Initialize the chart.
$chart = new HighchartsChart;
$chart->newChart()->setType("pie");
$chart->newPlotOptions();
$chart->getPlotOptions()->newPie()
->setAllowPointSelect(true)
->setCursor("pointer")
->setShowInLegend(true)
->newDataLabels()->setEnabled(true);
$chart->setSeries($series);
$chart->newTitle()->setText("your_custom_test");
$chart->newTooltip()->setPointFormat("{series.name}: <b>{point.percentage:.1f}%</b>");
$chart->newChart()->setType("pie");
$chart->newPlotOptions();
$chart->getPlotOptions()->newPie()
->setAllowPointSelect(true)
->setCursor("pointer")
->setShowInLegend(true)
->newDataLabels()->setEnabled(true);
$chart->setSeries($series);
$chart->newTitle()->setText("your_custom_test");
$chart->newTooltip()->setPointFormat("{series.name}: <b>{point.percentage:.1f}%</b>");

return $this->render('::your_template.html.twig', [
'chart' => $chart
Expand Down

0 comments on commit 6f67493

Please sign in to comment.