Django & Plotly.- Plotly Line Charts / Django Form & Template integration

In this video, we will learn how to create charts using the Plotly package in Python, and will learn how to display these charts in our Django templates. We’ll create a line-chart from real-life CSV data, using the Plotly Express module, and will create Django forms allowing users to filter between dates and update the chart. We’ll see how to do basic styling of a Plotly chart, including the chart’s title and axis labels, as well as modifying fonts and positioning. Starter code is available on Github: Final code is on the ’linechart’ branch: 📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀: 00:00 Intro 00:37 Setup 02:07 Adding Django model 02:58 Loading CSV data to database 06:14 Adding URL and View 06:52 Creating Line Chart with Plotly 10:46 Filtering chart data with Django
Back to Top