Closed cjohnson318 closed 5 years ago
Allow users to provide chart option in the view rather than the template. Then, in the template, write
$.get('{% url 'line_chart_with_options' %}', function (data) { var ctx = $("#lineChartWithOptions").get(0).getContext("2d"); new Chart(ctx, { type: 'line', data: data.data, options: data.options, }); });
Released in https://github.com/peopledoc/django-chartjs/releases/tag/1.5.0
Allow users to provide chart option in the view rather than the template. Then, in the template, write