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 %}