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
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
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
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
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
5 matches
Mail list logo