Back to guide/General Productivity

Data Visualization Prompt

Specifying exact axes, color schemes, and annotation points eliminates the back-and-forth that usually follows chart generation requests. Asking for 'copy-paste ready' code with all imports ensures the output actually runs without modification.

gpt-4o-promptschartTypedataOrDescriptionchartTitle
Edit View
Prompt
Create a {{chartType}} visualization using the following data:

**Data:**
{{dataOrDescription}}

**Chart requirements:**
- Title: {{chartTitle}}
- X-axis: {{xAxis}} | Y-axis: {{yAxis}}
- Color scheme: {{colorScheme}}
- Annotations: highlight {{annotationPoints}}
- Style: clean, presentation-ready (no gridlines unless useful)

**Technical specs:**
- Library: {{library}}
- Size: {{dimensions}}
- Export format: {{exportFormat}}

Generate the complete code. Make it copy-paste ready — include all imports, data setup, and save/export commands.

Variables to customize

{{chartType}}{{dataOrDescription}}{{chartTitle}}{{xAxis}}{{yAxis}}{{colorScheme}}{{annotationPoints}}{{library}}{{dimensions}}{{exportFormat}}

Why this prompt works

Specifying exact axes, color schemes, and annotation points eliminates the back-and-forth that usually follows chart generation requests. Asking for 'copy-paste ready' code with all imports ensures the output actually runs without modification.

Save this prompt to your library

Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.