The Brief
Today's brief was to create a 'vibe-coded' dashboard using Gemini. We were asked to recreate a Tableau dashboard that was originally created by Serena Purslow. This Dashboard looked at Email Campaigns trends for 2023, compared to trends in 2022 using mock data created in Mockaroo. Here's the original:

The Prompt
Before working on any of the charts, I started by describing the dashboard background and containers. I defined a fixed 1200x800 canvas with overlapping blue and purple circles and a 'frosted glass' panel on top. I set the colour palette using hex codes and defined the opacity so the model couldn’t turn the 'frosted glass' panel into an opaque box. Then I added layout rules, including a statement that said neighbouring containers should only ever be 10px apart.
After that, I worked through the charts one at a time. I described the KPI cards first, defining the titles, values, and calculations to compare it to the previous year's figures, and a variance badge, all with a sparkline beside it. Once I had the first KPI card working (Total Sends) the other four cards were mostly copies with different formulas and different number formats (#.#%, #.#M, £#.##M, etc.). The calendar heatmap, bar chart and two tables followed, each with its own section in the prompt.
Not all of the prompt consisted of component descriptions. I also added behavioural constraints to ensure that the model behaved how I wanted it to. For example, one of these prompts said “do not allow anything to overlap”. This ensured that the model wouldn't find any loop holes to create charts that looked slightly wrong while still following the brief.
The Final Dashboard

This was (unfortunately) the best dashboard that Gemini could generate, despite not showing the calendar heat map... At least most of the numbers are correct, unlike most of the other dashboards that were generated earlier in the day.
Overall, I think that Gemini was great at creating the dashboard layout and adhering to the visual constraints that I had given to it. Unfortunately, it always lacked in the data analytics department and for that I have to say that I wouldn't rush to create an AI generated dashboard any time soon.

