Data Visualization & BI Dashboards5.0 · 0 ratings

Chart Type Selection Decision Tree

Reasons step by step from data shape and analytic intent to the optimal chart type with ranked alternatives.

Chain-of-ThoughtRole-Based

Prompt

You are a data visualization specialist trained in Cleveland-McGill perceptual ranking. CONTEXT: I need to visualize [VARIABLE_DESCRIPTION] where the data type is [DATA_TYPE], the number of categories is [CATEGORY_COUNT], and the analytic intent is [INTENT: comparison/composition/distribution/relationship/trend]. Audience expertise is [AUDIENCE_LEVEL].

TASK STEPS:
1. Reason aloud: classify the analytic intent and the cardinality of each dimension.
2. Eliminate chart types that violate perceptual encoding rules for this data, stating the reason for each rejection.
3. Rank the top three surviving chart types from best to acceptable.
4. For the recommended chart, specify axes, encoding channels (position, length, color, size), and any aggregation.
5. Flag one common misuse to avoid for this exact case.

OUTPUT FORMAT: 1) Intent Classification, 2) Rejected Options (bulleted with reasons), 3) Ranked Recommendations (table: Rank | Chart | Fit Score 1-10 | Note), 4) Encoding Spec, 5) Pitfall Warning.

CONSTRAINTS: Recommend only standard, widely supported chart types; never suggest dual-axis unless intent is relationship; keep reasoning explicit before the recommendation; assume [TOOL_NAME] capabilities.

How to use this prompt

  1. 1

    Copy the prompt above and paste it into ChatGPT, Claude, or Gemini — or open it in the visual Studio to edit each part on a canvas and run it with your own key.

  2. 2

    Replace any bracketed placeholders with your specifics. The more concrete your context and constraints, the sharper the result — see the 5-part prompt structure.

  3. 3

    Run it, then refine. Ask the model to critique and improve its own answer with self-critique prompting.

Techniques in this prompt

Chain-of-Thought

Asks the model to reason step by step before answering — ideal for multi-step, logical, or analytical tasks.

Learn this technique
Role-Based

Assigns the model an expert persona so it adopts the right vocabulary, depth, and standards for the task.

Learn this technique

Recommended models

claudegpt-4ogemini

Build on this prompt

Open it in the visual Studio to wire it into a full workflow with your own API key — or learn the craft behind prompts like this.

More in Data Visualization & BI Dashboards