Python libraries for visualisations

85 views
Skip to first unread message

GEETHANJALI S P

unread,
Mar 15, 2021, 12:50:18 AM3/15/21
to django...@googlegroups.com
Hi..How to build a dashboard using django and python libraries for creating visualisations?. Please let me know .Thanks in advance!

Danny

unread,
Mar 15, 2021, 12:56:20 AM3/15/21
to Django users
You can use matplotlib library, encode the image in base64 and then show it in your html


I found this snippet of code works the same way with the way I usually do it.


If you are interested in a dynamic charts, you need to use JS library such as leaflet or D3.js

Omkar Parab

unread,
Mar 15, 2021, 12:56:42 AM3/15/21
to django...@googlegroups.com
You can integrate chart.js with Django for visualization.

Check out this video 👇

On Mon, Mar 15, 2021, 10:19 AM GEETHANJALI S P <geethanj...@gmail.com> wrote:
Hi..How to build a dashboard using django and python libraries for creating visualisations?. Please let me know .Thanks in advance!

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMKAcO%2BJqqp0kYMbWaWqjqJDcmMT9xMndv%3DD%2BNHbtYBvqL9CQg%40mail.gmail.com.

GEETHANJALI S P

unread,
Mar 15, 2021, 3:10:03 AM3/15/21
to django...@googlegroups.com
Can't we use python libraries instead of chart.js ...is there any method ..? 

Roger Gammans

unread,
Mar 15, 2021, 4:50:50 AM3/15/21
to django...@googlegroups.com

Plotly comes to mind. there are quite a few charting libraries in this python/web space. Google is as always your friend.

But at the end of the day the best UX is always going to come from a library with a significant JS component. If you don't want to worry to much about JS plotly's py component will generate the JS/JSON definitions of the graphs, which you can ship , alongside plotly's js to thee browser.

Christian Ledermann

unread,
Mar 15, 2021, 5:53:52 AM3/15/21
to django...@googlegroups.com
You may want to checkout pygal https://github.com/Kozea/pygal 



--
Best Regards,

Christian Ledermann

Dublin IE
Mobile : +44 7474997517

https://uk.linkedin.com/in/christianledermann
https://github.com/cleder/


<*)))>{

If you save the living environment, the biodiversity that we have left,
you will also automatically save the physical environment, too. But If
you only save the physical environment, you will ultimately lose both.

1) Don’t drive species to extinction

2) Don’t destroy a habitat that species rely on.

3) Don’t change the climate in ways that will result in the above.

}<(((*>

Milind Yadav

unread,
Mar 15, 2021, 2:33:25 PM3/15/21
to django...@googlegroups.com
See if Dash or Grafana has some python wrapper or not?

Thomas Lockhart

unread,
Mar 15, 2021, 3:10:47 PM3/15/21
to django...@googlegroups.com
If you are working with larger scientific datasets then bokeh may be of interest. For my cases all of the code is done in python.

hth

- Tom

On Mar 14, 2021, at 9:49 PM, GEETHANJALI S P <geethanj...@gmail.com> wrote:

Hi..How to build a dashboard using django and python libraries for creating visualisations?. Please let me know .Thanks in advance!

Ryan Nowakowski

unread,
Mar 17, 2021, 5:53:10 PM3/17/21
to django...@googlegroups.com
I'm terrible at web design so I usually like to start with some HTML that is already styled. I've had good luck using both of these free dashboard templates with Django:

* https://coreui.io
* https://adminlte.io

As always, check the licenses to make sure they're compatible with your use case.


Stephen Lalor

unread,
Mar 17, 2021, 6:25:38 PM3/17/21
to Django users
I do a tonne of data visualization and would recommend checking out Plotly. Looks really good and easy to create fairly complex graphics with.
Reply all
Reply to author
Forward
0 new messages