
The era of spending days coding executive dashboards or relying on complex, expensive software is over. Today, we can use a smart assistant like Gemini to design and write HTML code for an interactive dashboard that fetches data from Google Sheets in real-time, complete with a data update button. Plus, it can be shared as a link for immediate team use.
Let's look at how to magically create an executive dashboard in just 4 simple steps:
1. Access the Gemini App Getting started is easy. Simply open your browser and go to gemini.google.com (make sure you are logged in with your Google account). Have your ideas or the analytical goals of your desired dashboard ready in your mind.

2. Enter a Masterful Prompt The key is to write a prompt that covers both the "requirement context" and the "technical outcome." You can copy and adapt the prompt below:
Prompt Example: "Please design an Interactive Dashboard showing the results of implementing the Canvas Feature in our workflow, aimed at executives/program heads. Analytical goals: track trends, compare faculties/departments, and identify areas for improvement. Please propose:
What I need: HTML code along with CSS/JS that can connect data between Google Sheets and the dashboard in real-time (fetching data via a Published CSV). Also, please include an 'Update Data' button on the dashboard interface."
Once you submit the prompt, Gemini will analyze your needs and immediately draft a structure for you. It will provide the complete HTML code, embedding charting libraries and scripts to fetch data from Google Sheets perfectly. Sample Data: https://docs.google.com/spreadsheets/d/1-xxhMU2eX9ioQBst6nhZobttoeae6Lx4j5RAZ1XbjnM/copy

3. Review and Refine with Follow-up Prompts The first version of the code might not be 100% perfect, or you might want to tweak the design further. This is the main advantage of using AI; you can ask for revisions just like talking to your own personal programmer. For example:
"Please change the color of the faculty comparison bar chart to a light-blue and dark-blue tone."
"I want the 'Update Data' button to have a refresh icon and be moved to the top right corner."
"The provided code doesn't load the Google Sheets data. Please check the data fetching section (Fetch API) for me."
Gemini will modify and update the code for you until you are satisfied with the interface and functionality.

4. Test and Share as a Link for Others to Use Once you have refined it to a satisfactory result, there's no need to go through the hassle of hosting the code on a web server because you can share it directly from the Gemini window.
Set up Google Sheets: Put your data into Google Sheets, then go to File > Share > Publish to web. Choose CSV and give the resulting link to Gemini to update the HTML code.
Create a share link from Gemini: On the Gemini chat screen, click the "Share & export" button below the response and select "Share" (to create a public link).
Send to executives: Copy the generated URL and send it to your executives or team members. They can click it to view the dashboard in action and see the code running directly on the web page.

Using Gemini not only cuts down the working time from days to just a few minutes, but it also professionally guides your ideas in selecting the right KPIs and charts suited for an executive's perspective. Give this method a try and apply it to your data tasks!
wirut khajonchai