anarres: (Default)
anarres ([personal profile] anarres) wrote in [site community profile] dw_accessibility2010-07-13 11:41 am
Entry tags:

New statistics graphs

Hi all, I'm one of the Google Summer of Code students, working on the statistics project. I've written a module that generates graph images, which will be shown on http://www.dreamwidth.org/stats/site. I wanted to get some feedback on the images from an accessibility point of view. I don't know much about accessibility, but I guess the main questions would be, are the colours on the pie chart different enough to be distinguished by people with partial colour-blindness, and is the text visible enough?

The graphs module is found in an uncommitted patch here: Bug 2699 - Create a graphical front-end for the statistics system.

I was also wondering about alt text. I started out with the idea that the alt text would just repeat all the numbers shown visually in the graph, but I'm not sure if this is helpful, or just annoying. I guess maybe giving numbers in alt text is more useful when there are only 4 or 5 numbers like in the pie chart, but less useful if there are lots of numbers, like in the line graph?

Here are some example graphs:

Pie chart: value 1: 1; value 2: 0.05; value 3: 0.07; value 4: 1.5; value 5: 0.12





Bar chart: value 1: 13.377; value 2: 15.9; value 3: 145.67788; value 4: 123.1111; value 5: 0.1; value 5: 0.1; value 6: 44.03455; value 7: 33.3; value 8: 43; value 9: 123





Bar chart with two datasets: bar 1 dataset 1: 7243; bar 1 dataset 2: 4243; bar 2 dataset 1: 15901; bar 2 dataset 2: 12901; bar 3 dataset 1: 26188; bar 3 dataset 2: 11188





Line graph showing 3 datasets: dataset 1: 1900, 2035, 2078, 2140, 2141, 2200, 2460, 2470, 2576; dataset 2: 871, 996, 990, 1058, 1102, 1162, 1105, 1150; dataset 3:  200, 360, 370, 471, 496, 690, 758, 802

jeshyr: I Helped Make Dreamwidth Accessible (DW Accessibility - I Helped)

[personal profile] jeshyr 2010-07-13 12:05 pm (UTC)(link)
Wow, graphs! Looking forward to that.

Is there a reason you're putting the graph title as part of the image rather than regular text? Could it be swapped out of the image and a shorter image used? That would help with accessibility for a start.

Will the numbers be available on the page outside the graphical image, or is the graph the only way to access the numbers? The alt text becomes much less of an issue of the information is available somewhere else on the page - I suggest you read http://www.webaim.org/techniques/alttext/#complex (only ignore what they say about the "longdesc" attribute - don't use it here please!).

Readability of the text would be improved by putting commas in the numbers, eg "20,000" rather than "20000" is easier to read. Keeping all the text black is a good idea you've already implemented. Try bolding the text perhaps, so it's a bit thicker - you'll have to experiment to see what fits in the space available.

For the colour-blindness checking, there are free programs and also online checking tools you can use - there's a good list of accessibility checking tools on WebAIM which includes colour-blindness testing stuff. A rule of thumb is to convert your image to greyscale and see if it's still understandable that way, but use the tools too.

Looks like you're going well! Keep up the good work :)

r
jesse_the_k: That text in red Futura Bold Condensed (be aware of invisibility)

[personal profile] jesse_the_k 2010-07-13 10:01 pm (UTC)(link)
I'm not as well versed as RB, but choosing a good all-access graph title is crucial: "Popcorn Freshness Degradation Varies with Storage Temperature," or "Pairing Prefs Over Time: McShep vs OT3". Liberated from the graphic, this text provides a lot of info. The alt text just has to tell the blind user what the sighted user gets "at a glance": the nature of the figure. For example, alt="Popcorn Freshness Line Graph" or alt="Pairing Pref Histogram".

My metric is, can a blind teacher use the materials to present to a sighted student, as well as the other way around.

Oh! I just checked the page data -- I'll let you come up with better titles.