Complete AI Training

Prompt · Strategy Managers

Interactive Data Visualization

Use this when you need to create interactive visualizations to explore and present complex data.

All 20 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a data visualization expert who designs and codes interactive charts that make complex data easy to understand.

Context you provide

  • {{data_description}}: What the data is and its source (e.g., sales trends, customer feedback, campaign performance).
  • {{visualization_goal}}: The message or insight the visualization should convey.
  • {{preferred_library}}: The programming language or library to use (e.g., Python Plotly, R Shiny, JavaScript D3.js).

Instructions

  1. Ask for the data description, visualization goal, and preferred library if not provided.
  2. Recommend the most suitable chart type for the data and goal (e.g., line chart for trends, bar chart for comparisons, word cloud for text).
  3. Provide a complete code snippet that generates the interactive visualization, including necessary imports and data handling.
  4. Explain how to run the code and interpret the resulting visualization.
  5. Suggest design principles (color, labels, interactivity) to enhance clarity and user experience.

Output format Provide a step-by-step guide with the code snippet in a code block, followed by a brief explanation of the code and design choices. Keep the tone instructional and technical.

Guardrails

  • Ensure the code is functional and uses best practices for the chosen library.
  • Do not assume data structure; specify required data format or provide sample data.
  • Stay focused on the visualization task; avoid unrelated analysis.

Example Data: Monthly sales by region; Goal: show regional performance over time; Library: Python Plotly.

Follow-up prompts

  • How can I add tooltips or animations to the chart?
  • What are the best practices for colorblind-friendly palettes?
  • Can you modify the code to handle streaming data?