Prettify Django with Beautiful Charts


As trends move towards data science and users need better ways to understand their data. Then it’s more than likely at some point in your coding endeavors, you may be tasked with having to add data visualization and insights to your Django projects. The thought of it may seem complex, but fear not it’s not as complex as you might think. There are a couple of things you can use to come up with pretty reports and you don’t have to be a data scientist to do it. Initially you could either roll your own native SQL statements which you can execute on your phpAdmin client, export the results to excel for further analysis, which would allow you to instantly create different types of charts, including line and column charts, or sparklines (a small graphic designed to give a quick representation of numerical or statistical information).  What if you wanted to automate the whole process with Django? There are 3 key Django apps that you can use in your project(s). That will instantly give you amazing looking reports.

Django model report Django reports. Gives you a nice way to view your Django model data in tabular format.

Django report-builder A GUI for Django ORM (refer to lesson models for a recap). Build custom queries and display results. Targets sys admins and capable end users who might not be able to program.

Django highcharts an awesome library you should definitely have in your Django tool bucket to amaze your friends, peers or clients. This plugin app leverages on the famous highcharts to give you interactive data analysis charts. That means you can click on your charts and stuff happens pretty sweet. The things you can make are only limited by your dataset(s) and of cause imagination.

If you’re using Django rest framework then your charting options will be decoupled from your backend, you may even get more creative as they are plenty of 3rd party JavaScript frameworks to choose from for data analysis. If that’s not sufficient there are other non-Django options like Tableau for interactive visualizations and dash boarding which is a completely separate tool from your Django app. But such services come with a price tag.

By | 2017-04-26T14:39:05+00:00 March 29th, 2017|Django|