You need to choose a charting package, such as google charts or
plotly, then in your python code get the data you want to chart and
pass it to your template and in the template write some javascript
code to render the chart. Googling django pie chart should give you
examples.