Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drawing graphs in Django

Tags:

graph

django

I want to draw a graph in my Django-based site, to look like these one:

http://cssglobe.com/lab/csslinegraph/img.gif

How can I do this?

like image 691
DjangoBeginner Avatar asked Mar 10 '10 17:03

DjangoBeginner


People also ask

Can we plot graph in Django?

When building applications using Django, you may need to present data visualizations using graphs and charts. Matplotlib is one of the popular Python libraries that lets you achieve this functionality. In this article, we are going to create a sample Django application that uses Matplotlib to visualize data.

Can you use Matplotlib in Django?

django-matplotlib 0.1Django_matplotlib is a reusable Django app for embedding matplotlib figures into Django driven websites. It can be easily integrated with Django admin app and used in templates via forms.


2 Answers

Try one of these Django apps:

  1. django-googlecharts
  2. django-graphs (no longer maintained)

Also, see answers to this SO question

like image 90
Van Gale Avatar answered Oct 06 '22 08:10

Van Gale


Try django-chartit (licensed BSD 2-clause)

like image 36
Nam Ngo Avatar answered Oct 06 '22 10:10

Nam Ngo