Top chart fix after HighCharts bundle update.
This commit is contained in:
parent
6d8e17b114
commit
cfe8339ab1
|
@ -85,7 +85,7 @@ class UserController extends Controller
|
||||||
|
|
||||||
// Initializing chart
|
// Initializing chart
|
||||||
$ob = new Highchart();
|
$ob = new Highchart();
|
||||||
$ob->chart->renderTo('top-chart');
|
$ob->chart->renderTo('topchart');
|
||||||
$ob->chart->type('bar');
|
$ob->chart->type('bar');
|
||||||
$ob->title->text($translator->trans('Top users'));
|
$ob->title->text($translator->trans('Top users'));
|
||||||
$ob->xAxis->title(['text' => null]);
|
$ob->xAxis->title(['text' => null]);
|
||||||
|
|
|
@ -14,5 +14,5 @@
|
||||||
{{ chart(top_chart) }}
|
{{ chart(top_chart) }}
|
||||||
</script>
|
</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 %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue