[Fixed]-Ploting pie chart in django by highcharts

1๐Ÿ‘

โœ…

I suggest to use an external app (integration with Highcharts available).
I suggest to use chartkick https://github.com/mher/chartkick.py.
Just pass to the view a list of tuples and let the app render the chart.
example:

browser_stats = [('Chrome', 52.9), ('Firefox', 27.7), ('Opera', 1.6),
                 ('Internet Explorer', 12.6), ('Safari', 4)]

in your template use:

{% pie_chart browser_stats %}

here the result http://mher.github.io/chartkick.py/?type=highcharts

Less work best performance

๐Ÿ™‚

๐Ÿ‘คMattia

Leave a comment