# Plotting + Accessibility

**URL:** <https://discourse.julialang.org/t/plotting-accessibility/8873>\
**Category:** General Usage\
**Tags:** plotting\
**Created:** [February 6, 2018, 9:50pm UTC](https://discourse.julialang.org/t/plotting-accessibility/8873 "2018-02-06T21:50:03Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdmcallister](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdmcallister/32/2324_2.png) [@sdmcallister](https://discourse.julialang.org/u/sdmcallister)\
**Post date:** [February 6, 2018, 9:50pm UTC](https://discourse.julialang.org/t/plotting-accessibility/8873/1 "2018-02-06T21:50:03Z")

</div>

I am wondering if any Julia users who are producing plots, dashboards, or similar products are required to meet accessibility standards (either set by their organization or broader regulatory body)? By accessibility, I mean that the plot is interpreted by screen readers for people with differing visual capabilities. If anyone has successfully accomplished this I would be interested in hearing about your approach and packages used to accomplish this. My experience has been that screen readers (tested with NVDA) cannot detect the default output of several plotting packages. I’ve tried GR, plotly, Echarts, Gaston. I think one ideal behavior would be that cursor hovering over an object can read/detect the aggregated amount and also detect text within the plot.

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [February 6, 2018, 10:25pm UTC](https://discourse.julialang.org/t/plotting-accessibility/8873/2 "2018-02-06T22:25:02Z")

</div>

It’s a great idea, and a really important point. There’s been a little bit of debate about e.g. color-blind friendly colors on Plots [https://github.com/JuliaPlots/Plots.jl/issues/1144](https://github.com/JuliaPlots/Plots.jl/issues/1144) but definitely an area where a lot could be done.

---

<div class="post-metadata">

**Author:** ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Post date:** [February 6, 2018, 10:47pm UTC](https://discourse.julialang.org/t/plotting-accessibility/8873/3 "2018-02-06T22:47:57Z")

</div>

I am a bit colorblind and in one of the meetings I raised it and someone else said sarcastically “why don’t we put in braille as well?”. It hurt me a lot. People don’t realize how excluded people can feel when they say “green line” on the chart and colorblind people just see two lines of the same color (green and red presumably) and so can’t follow what they are saying and can’t voice their concerns as others can see it.

I am definitely for more inclusive. But I also recognize that there is more works. An awareness of color palette choice and design for colorblindness should be more widely taught.

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [February 6, 2018, 11:16pm UTC](https://discourse.julialang.org/t/plotting-accessibility/8873/4 "2018-02-06T23:16:20Z")

</div>

I know the original post was ambitious way beyond color-blindness so it shouldn’t steal the discussion, but I’ll just mention that the base Julia library Colors.jl has some good facilities for simulating color-blindness effects ([https://github.com/JuliaGraphics/Colors.jl#simulation-of-color-deficiency-color-blindness](https://github.com/JuliaGraphics/Colors.jl#simulation-of-color-deficiency-color-blindness))

---

<div class="post-metadata">

**Author:** ![randyzwitch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/randyzwitch/32/15955_2.png) [@randyzwitch](https://discourse.julialang.org/u/randyzwitch)\
**Post date:** [February 6, 2018, 11:26pm UTC](https://discourse.julialang.org/t/plotting-accessibility/8873/5 "2018-02-06T23:26:49Z")

</div>

I believe ECharts.js v4.x has started to incorporate accessibility, but I haven’t migrated to that major version yet (I’m still at 3.8.5)

---

<div class="post-metadata">

**Author:** ![randyzwitch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/randyzwitch/32/15955_2.png) [@randyzwitch](https://discourse.julialang.org/u/randyzwitch)\
**Post date:** [February 7, 2018, 1:11am UTC](https://discourse.julialang.org/t/plotting-accessibility/8873/6 "2018-02-07T01:11:04Z")

</div>

As it turns out, echarts4 is backwards compatible to echarts3, so I’m switching over now:

[https://github.com/randyzwitch/ECharts.jl/pull/36](https://github.com/randyzwitch/ECharts.jl/pull/36)

@sdmcallister if this is something you are really interested in, I’d love to collaborate. I get the concept, but have no idea about how to test for accessibility. If you (or anyone else) are interested, feel free to open an issue on the ECharts.jl repo and we can figure out how to get started.

---

<div class="post-metadata">

**Author:** ![pasha](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pasha/32/3319_2.png) [@pasha](https://discourse.julialang.org/u/pasha)\
**Post date:** [February 7, 2018, 1:51am UTC](https://discourse.julialang.org/t/plotting-accessibility/8873/7 "2018-02-07T01:51:51Z")

</div>

While there is more to it than the color, I think fixing red-green color blindness goes a long way; 1/12 of males have that feature, including one of my ex-clients. In R I handled it with `scale_color_brewer()` which recognizes this implicitly. It looks like [Colors.jl](https://github.com/JuliaGraphics/Colors.jl) is on its way to handling this too. Palettes generated there would be usable in any of the charting packages.

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [February 7, 2018, 8:06am UTC](https://discourse.julialang.org/t/plotting-accessibility/8873/8 "2018-02-07T08:06:53Z")

</div>

When doing plots for papers, I always go B&W (or at most 2 additional grays, but that’s pushing it), and distinguish plots by patterns (solid, dashed, or various mark sizes). This is because most people who don’t read on the screen would use monochrome laser printers by default, making colors print outs in some monochrome mapping, which is worse than useless.

This is supported by all plotting packages I encountered in Julia, but I know this does not address all accessibility issues.

---

<div class="post-metadata">

**Author:** ![sdmcallister](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdmcallister/32/2324_2.png) [@sdmcallister](https://discourse.julialang.org/u/sdmcallister)\
**Post date:** [February 7, 2018, 10:23am UTC](https://discourse.julialang.org/t/plotting-accessibility/8873/9 "2018-02-07T10:23:47Z")

</div>

@randyzwitch Sure, I would be happy to help out with the testing.

[https://github.com/randyzwitch/ECharts.jl/issues/38](https://github.com/randyzwitch/ECharts.jl/issues/38)
