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 <ratnadeep9@gmail.com> a écrit :
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()
def view1(request)
return render(request, 'display_report.html', { 'var1': "abc", ...
... })
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/827e0d0c-6bbb-4511-af73-9fa379df699do%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAOwHV6_cc-UbjQkSv6fRG_MbQxOWCL1goM%2BjuyBkD0vbghn2ig%40mail.gmail.com.
No comments:
Post a Comment