diff --git a/README.md b/README.md index 4c8ff1b4..da9869f1 100755 --- a/README.md +++ b/README.md @@ -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}: {point.percentage:.1f}%"); + $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}: {point.percentage:.1f}%"); return $this->render('::your_template.html.twig', [ 'chart' => $chart