Top chart fix after HighCharts bundle update.

This commit is contained in:
Alexey Skobkin 2016-12-11 03:28:29 +03:00
parent 6d8e17b114
commit cfe8339ab1
2 changed files with 2 additions and 2 deletions

View file

@ -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]);

View file

@ -14,5 +14,5 @@
{{ chart(top_chart) }}
</script>
<div id="top-chart" style="min-width: 400px; height: 600px; margin: 0 auto;"></div>
<div id="topchart" style="min-width: 400px; height: 600px; margin: 0 auto;"></div>
{% endblock %}