Creating dynamic chart / graphs with Django

435 views
Skip to first unread message

tristant

unread,
Apr 12, 2021, 1:06:48 PM4/12/21
to Django users
I am looking to build site with a variety of charts and graphs. A quick search shows quite a lot of packages out there, as listed here Django Packages : Charts

Has anyone used any of these packages and could provide some advice on which is better? For my task, I am looking to create both typical 2D charts as well as possible 3D plots. The charts need to be interactive ( as in user can tweak inputs and expect the charts to respond).

I have done similar charts with R Shiny. I am wondering which of these packages can do similar things?

I notice in the link, some packages mention "offline". Does this mean they cannot create interactive charts?

Thanks.

Walter Randazzo

unread,
Apr 12, 2021, 1:33:57 PM4/12/21
to django...@googlegroups.com
Hi Tristan,

i have used this one just once. 

Check it, it easy to setup.

Regards,



--
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/efe61d41-1e8c-4c56-899f-8164c0384bf3n%40googlegroups.com.

Lars Liedtke

unread,
Apr 12, 2021, 2:18:04 PM4/12/21
to django...@googlegroups.com, Walter Randazzo

Hey,

this is quite good https://bokeh.org it can create dynamic html/js as well, but I don't know how the interagion into django is.

Cheers

Lars

Am 12.04.21 um 15:32 schrieb Walter Randazzo:
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAL7Dry50qF%3DJ0A5f3p%3DUMpVhzhnAV2s4nRmUr4g37LZ5Qju3%3Dg%40mail.gmail.com.
-- 
---
punkt.de GmbH
Lars Liedtke
.infrastructure

Kaiserallee 13a	
76133 Karlsruhe

Tel. +49 721 9109 500
https://infrastructure.punkt.de
in...@punkt.de

AG Mannheim 108285
Geschäftsführer: Jürgen Egeling, Daniel Lienert, Fabian Stein

Walter Randazzo

unread,
Apr 12, 2021, 2:30:44 PM4/12/21
to django...@googlegroups.com
Plus, in order to be an interactive real "live" chart you can use ajax.

Tran Trong Tri

unread,
Apr 12, 2021, 4:30:17 PM4/12/21
to django...@googlegroups.com
Thanks Walter and Lars for the tips.

Santhosh Kumar

unread,
May 15, 2021, 2:41:14 PM5/15/21
to Django users
i too have similar requirement. I tried plotly, however the integration of django and plotly didnt go well often with huge data in sense, loading time was high and special channels setup was required. (i learnt from this video).
Currently im trying with chartjs.
Any other better suggestions please let us know in the group.

I believe (not sure) such channels implementation will be required for bokeh and seaborn as well. 

Thomas Lockhart

unread,
May 15, 2021, 8:07:47 PM5/15/21
to django...@googlegroups.com, Walter Randazzo
Django integration is fairly easy with Bokeh. For very large datasets you will want to also use Datashader and Holoviews so that high-density data gets rendered with meaningful interpolations.

hth

- Tom

Ryan Nowakowski

unread,
May 16, 2021, 2:50:46 PM5/16/21
to django...@googlegroups.com
I like to start with one of the free dashboard templates for a project like this. I've used both CoreUI and AdminLTE in the past with good success. These dashboard templates include some sample graphs using one of the standard JavaScript charting libraries.

I look at these graph examples for how the data is loaded. Then I use Django to load the data that same way. I like to optimize the data on the back end instead of having the charting library optimize it on the front end. For example, I'll do the interpolation of data in Python on the back end.

This allows me to have a project that has a pretty nice looking feel by default. Also I don't have to go through the trouble of trying to select a front end stack. The template has already done that for me.
Reply all
Reply to author
Forward
0 new messages