What accessibility considerations (contrast, font size, colour-blind palettes, alt text) should a chart meet?

Quick Overview

Explain the accessibility requirements a data chart should meet, covering contrast, font size, colour-blind-safe palettes and alt text. Tests whether you can make Matplotlib or Seaborn charts readable for people with low vision or colour blindness and for screen reader users.

What accessibility considerations (contrast, font size, colour-blind palettes, alt text) should a chart meet?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: easy

Interview Round: Other

What accessibility considerations (contrast, font size, colour-blind palettes, alt text) should a chart meet? Assume you build charts with Matplotlib or Seaborn for reports and web pages. Explain what each consideration requires in practice. ```hint Picture the readers Think of three people: one with red-green colour blindness, one reading the chart on a phone, and one using a screen reader. Ask what each of them needs from the same chart. ``` ### What a Strong Answer Covers - Colour-blind-safe palettes and redundant encoding, so colour is never the only cue - Contrast targets for text and for chart elements against the background - Font sizes that stay legible at the size the chart is finally shown - Alt text that states the chart type, the axes and the main takeaway, plus meaningful titles and axis labels - How to check a chart before publishing it ### Follow-up Questions - A chart has 12 categories. How do you keep it readable without relying on colour? - How would you write alt text for a complex chart whose takeaway needs several numbers? - Why is a rainbow colormap a poor choice for a heatmap, even for readers with typical colour vision? - How would you make an interactive dashboard chart usable with a keyboard and a screen reader?

Overview: Explain the accessibility requirements a data chart should meet, covering contrast, font size, colour-blind-safe palettes and alt text. Tests whether you can make Matplotlib or Seaborn charts readable for people with low vision or colour blindness and for screen reader users.

Nov 25, 2026
easyData ScientistOtherData Manipulation (SQL/Python)
0
0

What accessibility considerations (contrast, font size, colour-blind palettes, alt text) should a chart meet?

Assume you build charts with Matplotlib or Seaborn for reports and web pages. Explain what each consideration requires in practice.

What a Strong Answer Covers Guidance

  • Colour-blind-safe palettes and redundant encoding, so colour is never the only cue
  • Contrast targets for text and for chart elements against the background
  • Font sizes that stay legible at the size the chart is finally shown
  • Alt text that states the chart type, the axes and the main takeaway, plus meaningful titles and axis labels
  • How to check a chart before publishing it

Follow-up Questions Guidance

  • A chart has 12 categories. How do you keep it readable without relying on colour?
  • How would you write alt text for a complex chart whose takeaway needs several numbers?
  • Why is a rainbow colormap a poor choice for a heatmap, even for readers with typical colour vision?
  • How would you make an interactive dashboard chart usable with a keyboard and a screen reader?