Sitemap
TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Follow publication

How to Build a Data Dashboard Prototype with Generative AI

10 min readJan 27, 2025

--

Learn how to chart Goodreads reading data with this tutorial (Image designed by FreePik)

Project explanation

OpenAI

Chart generation with Vizro-AI

Settings

Chart 1: Books timeline

Chart 2: Reading velocity

Chart 3: Reviews comparison

Dashboard generation with Vizro-AI

Set up a Jupyter Notebook

Build a dashboard

Add dashboard interactivity

user_question = """
Create a dashboard with 3 pages, one for each chart.

On the first page, plot a chart with the title "Sequence of reading" .
It is a scatter chart. Use the x axis to show the date a book was read. Plot it at y=1.

+ Add a date picker filter so the user can adjust the range of dates for the Date Read on the x axis.

On the second page, plot a chart with the title "Pages and Book totals" .
It shows the cumulative total number of pages read by summing the Number of Pages of each book read in each year, using the Date Read data.
Plot date on the x axis and the number of pages on the y axis using a scale on the left hand side of the chart.
Superimpose a bar chart showing the total books read for each year, taking data from the Date Read column.

Show the total books read using the right hand side of the chart which can be a different scale to the y axis shown on the left hand side.

On the third page, for each row, create a dumbbell chart to show the difference between My Rating and Average Rating for each book.
Use shapes to add the horizontal lines between markers. Omit the legend. Don't show any row where My Rating is 0.
"""

Get the Notebook

Interactive Vizro dashboards on PyCafe

More about PyCafe

Prototype summary

Improvements to generated Plotly code

--

--

TDS Archive
TDS Archive

Published in TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Jo Stichbury
Jo Stichbury

Written by Jo Stichbury

Technical content creator writing about data science and software. Old-school Symbian C++ developer, now accidental cat herder and goose chaser.

Responses (2)