From cfe8339ab119cfcf3df65f823f92ce7da2f4d989 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Sun, 11 Dec 2016 03:28:29 +0300 Subject: [PATCH] Top chart fix after HighCharts bundle update. --- .../Bundle/PointToolsBundle/Controller/UserController.php | 2 +- .../Bundle/PointToolsBundle/Resources/views/User/top.html.twig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Skobkin/Bundle/PointToolsBundle/Controller/UserController.php b/src/Skobkin/Bundle/PointToolsBundle/Controller/UserController.php index 76412ec..0d92a98 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Controller/UserController.php +++ b/src/Skobkin/Bundle/PointToolsBundle/Controller/UserController.php @@ -85,7 +85,7 @@ class UserController extends Controller // Initializing chart $ob = new Highchart(); - $ob->chart->renderTo('top-chart'); + $ob->chart->renderTo('topchart'); $ob->chart->type('bar'); $ob->title->text($translator->trans('Top users')); $ob->xAxis->title(['text' => null]); diff --git a/src/Skobkin/Bundle/PointToolsBundle/Resources/views/User/top.html.twig b/src/Skobkin/Bundle/PointToolsBundle/Resources/views/User/top.html.twig index d5ba95d..e2ee118 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Resources/views/User/top.html.twig +++ b/src/Skobkin/Bundle/PointToolsBundle/Resources/views/User/top.html.twig @@ -14,5 +14,5 @@ {{ chart(top_chart) }} -
+
{% endblock %}