Example Prompts
Copy a prompt and paste it into the AI edit form to get started.
Make it rainbow.
Make it dark mode.
Apply the VizHub Grayscale Data Visualization Style Guide
Preview full prompt
Apply the following style guidelines: # VizHub Grayscale Data Visualization Style Guide ## 1. Design philosophy Create clean, sophisticated, publication-quality interactive visualizations using a strictly monochromatic visual language. The design should feel analytical, timeless, restrained, and precise. - Prioritize data over decoration. - Use whitespace to establish hierarchy. - Avoid visual clutter, unnecessary borders, shadows, gradients, and ornamental elements. - Use a consistent grayscale palette throughout. - Maintain visual consistency across charts in the same project. - Use typography, contrast, line styles, patterns, and spatial arrangement to distinguish information. - Optimize for readability on desktop, mobile, and in print. ## 2. Color palette Use only neutral grays, black, and white. Avoid tinted grays and chromatic colors. | Role | Hex | |---|---| | Primary text and strongest emphasis | `#111111` | | Secondary data emphasis | `#333333` | | Dark series | `#555555` | | Medium series | `#808080` | | Light series | `#AAAAAA` | | Subtle fills | `#D6D6D6` | | Background panels | `#F2F2F2` | | Main background | `#FFFFFF` | Use no more than five grayscale series within one chart where possible. Reserve near-black for the most important information. Use lighter grays for context and secondary information. For small text, use `#555555` or darker on white backgrounds. ## 3. Typography Use Inter or a closely matching modern sans-serif font. - Visualization title: 22–28px, semibold, `#111111`. - Section titles: 16–18px, semibold. - Axis labels: 12–13px, regular, `#555555`. - Tick labels: 11–12px, regular. - Data labels: 12–14px, medium. - Sources and annotations: 11–12px, regular. Use tabular numerals when displaying numeric values. Avoid excessive bold text and all-caps labels. Prefer sentence case throughout. ## 4. Chart construction ### Background and axes Use white backgrounds. Remove outer chart borders. Prefer subtle horizontal gridlines (`#E5E5E5`) and avoid vertical gridlines unless necessary. Use thin axis lines in `#AAAAAA`, or omit them when positioning already makes the scale clear. Avoid unnecessary axis ticks and decimal places. ### Bars - Use flat fills with no gradients. - Avoid rounded bar corners. - Use consistent bar widths and spacing. - Sort categories meaningfully, usually by value. - Start quantitative bar axes at zero. - Use dark gray for highlighted bars and medium/light gray for context. - Label bars directly when space permits. ### Lines - Primary series: `#111111`, 2.5px stroke. - Secondary series: `#777777`, 2px stroke. - Additional series: differentiated using dashed or dotted strokes. - No decorative smoothing that misrepresents measurements. - Use subtle markers only when they improve interpretation. - Prefer direct labeling at the end of each line instead of a separate legend. ### Scatterplots Use circular marks with consistent sizing. Apply opacity strategically to reveal density. Highlight selected observations with a dark outline or larger marker. For categorical groupings, use different mark shapes in addition to gray levels. ### Legends Use compact, left-aligned legends with restrained spacing. Prefer direct labeling when possible. For categories represented by similar grays, include distinctive patterns, shapes, or line styles. ## 5. Layout and spacing Use an 8px spacing system. - Chart container padding: 24–32px. - Spacing between title and subtitle: 8px. - Spacing between subtitle and plot: 24px. - Spacing between related charts: 32–48px. - Maintain generous outer margins. Align titles, descriptions, plot areas, and sources to a consistent grid. Avoid unnecessary card borders. Use whitespace to distinguish sections. ## 6. Interaction design Interactions should be subtle and purposeful. ### Hover - Highlight the hovered mark using near-black. - Reduce the opacity of unrelated marks when appropriate. - Show a compact, readable tooltip. - Use thin gray guide lines when helpful. ### Selection - Use solid black outlines, thicker strokes, or a distinctive shape. - Do not rely exclusively on a change in gray value. - Ensure selected marks remain distinguishable from hovered marks. ### Tooltips Use a white background with a thin gray border, subtle shadow, 8px corner radius, and dark text. Display relevant measurements with consistent formatting and units. ### Animation Use restrained transitions, typically 150–250ms. Avoid bounce effects, exaggerated movements, and animation that obscures comparisons. Respect reduced-motion preferences. ## 7. Accessibility - Maintain WCAG AA text contrast. - Never rely on grayscale differences alone to encode essential categories or states. - Use patterns, line styles, marker shapes, annotations, or direct labels as complementary encodings. - Provide keyboard-accessible interactions and visible focus indicators. - Support responsive layouts and screen-reader descriptions. - Include clear chart titles and meaningful accessible summaries. ## 8. Responsive behavior ### Desktop Maximize chart readability while preserving whitespace. Use multi-column layouts only when charts remain legible and comparisons benefit from adjacency. ### Mobile - Reduce container padding to approximately 16px. - Reflow multiple charts into a single column. - Move legends below charts when necessary. - Reduce tick density without removing essential scale information. - Avoid clipping labels or shrinking text excessively. - Preserve touch-accessible interactions. ## 9. Editorial conventions Every substantial visualization should include: 1. A descriptive title communicating what the chart shows. 2. A short subtitle explaining context, units, or timeframe where needed. 3. A clearly labeled chart with appropriate scales. 4. Direct annotations for important findings. 5. A source note when applicable. Avoid generic titles such as "Data Visualization" or "Chart 1." Prefer titles that immediately communicate the subject. Use annotations sparingly, focusing attention on meaningful observations. ## 10. Prohibited visual treatments Do not use: - Saturated or chromatic colors. - Gradients or glassmorphism. - Heavy card shadows. - 3D chart effects. - Thick chart borders. - Excessive gridlines. - Decorative illustrations. - Unnecessary icons. - Unlabeled color-only distinctions. - Animations that distract from the data. ## 11. Reference visualization Apply these guidelines to the **current visualization**. Preserve its underlying dataset, subject matter, chart types, and intended analytical message unless a change is necessary for readability or accessibility. Do not replace it with an unrelated example dashboard. When relevant to the existing visualization, use the following as style references: - A horizontal bar chart with five categories in progressively differentiated grayscale fills. - A line chart with two time series, one solid black and one dashed medium gray. - A scatterplot with subtle point opacity and a highlighted observation. - A compact legend demonstrating grayscale, line styles, and marker shapes. Use clear annotations, professional titles, and consistent spacing. The final design should resemble a polished analytical report suitable for a scientific publication, economic research dashboard, or high-quality data journalism article. ## 12. Implementation requirements Implement all design choices using reusable CSS custom properties or equivalent design tokens. Keep data, scales, and interaction logic separate from presentation styles wherever practical. Avoid hardcoding grayscale values across individual chart components when a shared token can be used. The resulting visualizations should be responsive, interactive, accessible, and visually consistent. **Overall aesthetic:** Editorial minimalism, scientific precision, monochromatic elegance, and information-first design.