Re: How to display a line graph in Django?

2020-07-01 Thread shedd tutt
Use chartjs On Wed, 1 Jul 2020, 07:45 ratnadeep ray wrote: > Hi all, > > I have wrote a python program to display the line graph as follows: > > import matplotlib.pyplot as plt > > x = [1,2,3] > y = [2,4,1] > > > plt.plot(x, y) > > > plt.xlabel('x - axis') > plt.ylabel('y - axis') > > > plt.titl

Re: How to display a line graph in Django?

2020-07-01 Thread Yamen Gamal Eldin
There's plotting library in Django. But if I were u, I would send the data needs plotting to the template, and plot it using a JavaScript library like chart js for small plots or d3 J's for more professional ones. Le mer. 1 juil. 2020 à 06:44, ratnadeep ray a écrit : > Hi all, > > I have wrote a

How to display a line graph in Django?

2020-06-30 Thread ratnadeep ray
Hi all, I have wrote a python program to display the line graph as follows: import matplotlib.pyplot as plt x = [1,2,3] y = [2,4,1] plt.plot(x, y) plt.xlabel('x - axis') plt.ylabel('y - axis') plt.title('My first graph!') plt.show() Now I need to display the same via Dj

Re: Graph in django

2013-08-06 Thread Lukas Nemec
know how to do any of these things, I'd suggest you to read django tutorial and then ask us a more specific question. Enjoy! Lukas On 08/06/2013 07:30 AM, amanjot kaur wrote: I am plotting a graph in django using matplotlib. I am entering all the values manually but I want to fetch the v

Graph in django

2013-08-05 Thread amanjot kaur
I am plotting a graph in django using matplotlib. I am entering all the values manually but I want to fetch the values from database in views.py. -- Amanjot Kaur Blog: kauramanjot35.wordpress.com -- You received this message because you are subscribed to the Google Groups "Django