For the second day of dashboard week I was challenged to recreate an existing Dashboard (shown below) using Gemini. Here is how I did it...

Creating the Prompt

It is important to have extremely thorough prompts, to prevent the AI from doing its own thing or hallucinating data. Here Is the structure I used to create my prompt:

  1. Structural Fidelity- A detailed description of Container Names, Sizes (W x H), Positions (X,Y), Titles
  2. Design System & Styling- Background &Container Colours, Dashboard Font Style
  3. Data & Charts- Chart names, Descriptions, Container Location, Rows/Columns ([dimensions]/[measures]) Formatting (labels, units, font size, colours), Parameters, Definitions.
  4. Parameters and Interactivity- All the parameters used in the dashboard with details (Name, Data Type, Allowable Values, Format)

Here is an example of a prompt for the bar chart:

You can see it includes:

  • Title
  • Row dimension/measure
  • column dimension/measure
  • Labels, formatting, colours
  • Any paramaters that will be used

Trouble Shooting

Once I had created the prompt I insert this into the chat. Here is the first Dashboard that was produced.

At a glance it seems like it worked:

  • The layout of the dashboard and charts were accurate
  • The KPI values were correct, including the values and colours
  • The bar chart had the correct values and formating
  • The table and parameters worked well

However some things were incorrect:

  • The Heat map was not displaying the correct values
  • The table values were not correct and did not have a diverging bar

Given the things I noticed were incorrect, I altered the prompt to take into account all is the discrepancies. Here are some other things I took into account when altering the prompt:

  • Included to always created a dashboard and not provide the code
  • I inverted the KPI colour coded for unsubscribe as high rates are negative.

Final Version After

Now you can notice in this dashboard:

  • The diverging bar chart is present
  • All the values are accurate apart from the heat map

It is quite close to the original dashboard.

Limitations

  • Have to be very specific about numbers otherwise it will fabricate values
  • Despite using the same prompt multiple times, it can produce a different dashbaord.
  • The process is legnthly
  • It struggles to create heat maps accurately, this was seen across multiple dashboards.