Displaying graphs/charts in Django

Take a look at these well know libraries which will come handy to plot graphs without ever writing JS

Chartit: http://django-chartit.mrsenko.com/demo/chart/basic-line/

ChartJs: https://github.com/novafloss/django-chartjs

Django charts: http://www.fusioncharts.com/django-charts/

Django nvd3: https://github.com/areski/django-nvd3

Django graphos: http://agiliq.com/demo/graphos/

Django Gcharts: https://github.com/rhblind/django-gcharts


You might want to look at

Django Graphos

It supports lot of backends, and integrates well with Django orm, but can work with other data sources too.

Chart types supported

Flot
  • Line chart
  • Bar Chart
  • Point Chart
Google Charts
  • Line chart
  • Column chart
  • Bar chart
  • Candlestick charts
  • Pie chart
YUI
  • Line chart
  • Column chart
  • Bar chart
  • Pie chart
Morris.js
  • Line chart
  • Column chart
  • Donut chart

[Disclosure: I am one of the authors]


One lighter alternative is pycha

See this blogpost to get an idea: A quick post on using Python Charts to generate nice SVG charts for your django website

Another option is to include google charts in your templates.

If rendering the graph via js in your templates is an option, these are two popular libraries:

  • http://www.highcharts.com
  • http://www.jqplot.com