如何编写数据库可视化界面_编写用于数据可视化的替代文本

如何编写数据库可视化界面

什么是替代文字 (What is Alt Text)

Alt text (sometimes called Alt tags or alternative text) are written descriptions added to images that convey the meaning of the visual. Good alt text helps more people understand the content. Assistive technology like screen readers reads the alt text out loud so users can hear and understand the visual content. People who use screen readers often have a vision impairment. This includes people who are totally blind, but also people with low or impaired vision.

Alt文本 (有时称为Alt标记或替代文本)是添加到图像的书面说明,传达了视觉的含义。 优质的替代文字可帮助更多的人理解其内容。 诸如屏幕阅读器之类的辅助技术会大声朗读alt文本,以便用户可以听到和理解视觉内容。 使用屏幕阅读器的人经常有视力障碍。 这包括完全失明的人,也包括视力低下或受损的人。

Not writing alt text means that people miss out on content that is necessary, just because it’s visual. It means it’s not accessible.

不写替代文本意味着人们会因为视觉内容而错过必要的内容。 这意味着它不可访问。

从Webaim定义的替代文字: (Alt Text defined from Webaim:)

It is read by screen readers in place of images allowing the content and function of the image to be accessible to those with visual or certain cognitive disabilities.

屏幕阅读器代替图像来读取它,从而使视觉或某些认知障碍者可以访问图像的内容功能

It is displayed in place of the image in browsers if the image file is not loaded or when the user has chosen not to view images.

如果未加载图像文件或当用户选择不查看图像时,它将在浏览器中代替图像显示。

It provides a semantic meaning and description to images which can be read by search engines or be used to later determine the content of the image from page context alone.

它为图像提供了语义含义和描述,可以被搜索引擎读取或用于以后仅从页面上下文确定图像的内容。

There are many resources for how to write alt text generally (I list more at the end of this piece), but few that provide guidance for how to write descriptions for data viz.

通常有很多 资源来编写替代文本(我在本文的结尾列出了更多),但是很少有资源为如何编写数据说明提供指导。

如何为数据可视化编写替代文本 (How to write for alt text for data visualization)

So how do you write something short that conveys the whole meaning of a visualization? You probably can’t. That doesn’t mean that you shouldn’t try.

那么,如何编写简短的内容来传达可视化的全部含义呢? 你可能做不到。 这并不意味着您不应该尝试。

  • Adding alt text is better than not doing anything at all if there’s meaningful information in the image.

    如果图像中包含有意义的信息,则添加替代文本总比不执行任何操作更好。
  • Add a long description if you can add HTML, to more fully convey the meaning.

    如果可以添加HTML,请添加长说明 ,以更全面地传达其含义。

  • Supplement with a link to the raw data, so curious readers can access the data in their own preferred program.

    补充原始数据的链接,以便好奇的读者可以在自己的首选程序中访问数据。
  • Keep your alt text short. Alt text is read linearly by screen readers, which means that people can’t go back a word if they missed something. For SEO purposes, Google cuts off after a certain amount of characters.

    保持替代文字简短。 屏幕阅读器会线性读取Alt文本,这意味着人们如果错过了某些内容就无法退缩一个单词。 出于搜索引擎优化的目的,Google会在输入一定数量的字符后将其截断。

The World Wide Web Consortium (W3C), an international Web standards setting community, offers guidelines for alt text for complex images, but it can be difficult to interpret how to apply these to data visualization. Below, I interpret these guidelines to apply to charts and graphs. Refer to the W3C guidelines for nuance and compliance.

万维网联盟(W3C)是一个国际Web标准制定社区,它为复杂图像提供替代文本准则 ,但是很难解释如何将其应用于数据可视化。 在下文中,我解释了这些指导原则以适用于图表。 有关细微差别和合规性,请参阅W3C准则

Here’s a simple formula for writing alt text for data visualization:

这是编写用于数据可视化的替代文本的简单公式:

alt= “Chart type of type of data where reason for including chart” Include a link to data source somewhere in the text
Example alt-text format for data viz
数据可视化的替代文本格式示例

图表类型 (Chart type)

It’s helpful for people with partial sight to know what chart type it is and gives context for understanding the rest of the visual. Example: Line graph

对于视力不佳的人来说,了解它是什么图表类型并为理解其余视觉内容提供上下文很有帮助。 示例:折线图

资料类型 (Type of data)

What data is included in the chart? The x and y axis labels may help you figure this out. Example: number of bananas sold per day in the last year

图表中包含哪些数据? x和y轴标签可以帮助您解决这一问题。 示例:去年每天出售的香蕉数量

包含图表的原因 (Reason for including the chart)

Think about why you’re including this visual. What does it show that’s meaningful. There should be a point to every visual and you should tell people what to look for. Example: the winter months have more banana sales

考虑一下为什么要包含此视觉效果。 它表明什么是有意义的。 每个视觉效果都应该有重点,您应该告诉人们要寻找的东西。 示例:冬季的香蕉销量增加

链接到数据或源 (Link to data or source)

Don’t include this in your alt text, but it should be included somewhere in the surrounding text. People should be able to click on a link to view the source data or dig further into the visual. This provides transparency about your source and lets people explore the data. Example: Data from the USDA

不要在替代文字中包含此内容,但应将其包含在周围的文字中。 人们应该能够单击链接来查看源数据或进一步挖掘视觉效果。 这提供了有关您来源的透明性,并允许人们浏览数据。 示例:来自 USDA的 数据

简单图表替代文字示例 (Simple chart alt text example)

Bar chart of gun murders per 100,000 people where America’s murder rate is 6 times worse than Canada, and 30 times Australia

If I was posting this chart from the New York Times article “How to Reduce Shootings” on social media I would include a link to the article and write this alt text:

如果我是在社交媒体上发布《纽约时报》文章“ 如何减少枪击事件 ”中的图表,则将包括该文章的链接并撰写以下替代文字:

Bar chart of gun murders per 100,000 people where America’s murder rate is 6 times worse than Canada, and 30 times Australia

复杂图表替代文字示例 (Complex chart alt text example)

Colored stripes of chronologically ordered temperatures where they increase in red to show the warming global temperature

If I was posting a less typical chart type like the Warming Stripes from Ed Hawkins, I would include a link to the source and focus on the meaning behind them for the alt text:

如果我发布的是不太典型的图表类型,例如Ed Hawkins的Waring Stripes ,那么我将包括指向源的链接,并着重关注alt文本背后的含义:

Colored stripes of chronologically ordered temperatures where they increase in red to show the warming global temperature

如何添加替代文字 (How to add alt text)

在HTML代码中 (In HTML code)

Add alt text alt="" to any image that adds meaning inside the image tag <img>. Add a long description longdesc="" when possible.

alt文本 alt=""添加到任何在图像标签<img>内添加含义的图像。 如果可能,添加长描述 longdesc=""

在推特上 (On Twitter)

When you add an image, use the add description button or +alt. Twitter has full instructions.

添加图像时,请使用添加描述按钮+ altTwitter有完整的说明

Image for post
Image for post

在Instagram上 (On Instagram)

Instagram hides the alt text functionality, but there is documentation on how to add alt text.

Instagram隐藏了替代文本功能,但是有关于如何添加替代文本的文档

  • Choose a filter and edit the image, then tap Next.

    选择一个过滤器并编辑图像,然后点击下一步

  • Tap Advanced Settings at the bottom of the screen.

    点击屏幕底部的高级设置

  • Tap Write Alt Text.

    点击写替代文本

在Microsoft Office产品中 (In Microsoft Office Products)

Microsoft Office has a variety of ways that you can add alt text depending on which program and what version you are using. However, they have extensive documentation on how to add alt text.

Microsoft Office有多种方式,您可以根据所使用的程序和所使用的版本来添加替代文本。 但是,他们有大量有关如何添加替代文本的文档

在中等 (On Medium)

Click on the image in the post. Use the “Alt text” label to write your text.

点击帖子中的图片。 使用“替代文字”标签来写您的文字

Image showing Medium interface for adding alt text

By writing effective alternative text or alt text and including it when you publish data visualization you provide a way for people who cannot see the image to understand the content so they are not missing out on critical information. Having alt text is necessary in order for the visual content to be accessible.

通过编写有效的替代文本或替代文本,并在发布数据可视化时将其包括在内,可以为看不见图像的人提供一种理解内容的方式,从而使他们不会错过重要信息。 为了使视觉内容可访问,必须具有替代文本。

其他阅读 (Other reading)

替代文字 (Alt text)

数据可视化的可访问性 (Accessibility for Data Viz)

Thank you to Doug Schepers and Zander Furnas for reviewing

感谢 Doug Schepers Zander Furnas 的评论

Correction: The article previously stated that screen readers cut off reading alt text at 125 characters. This is outdated information and has been revised. Thanks to Zoë Bijl and Kevin White for the update.

改正 :先前文章指出 屏幕阅读器截断了125个字符的替代文本 这是 过时的信息 ,已经过修订。 感谢 ZoëBijl 和Kevin White的更新。

Amy Cesal is a designer specializing in data visualization. She is a co-founder of the Data Visualization Society and currently serves on the board. Amy is passionate about building style guidelines for data visualization, trying to make everything, including charts, accessible, creating bespoke data visualization and experimenting with the boundaries between data and art. She holds a masters in Information Visualization from MICA.

艾米·塞萨尔 ( Amy Cesal) 是一位专门从事数据可视化的设计师。 她是数据可视化协会的联合创始人,目前担任董事会成员。 艾米(Amy)对建立数据可视化样式指南充满热情,力求使包括图表在内的所有内容都可访问,创建定制的数据可视化并尝试数据与艺术之间的界限。 她拥有MICA的信息可视化硕士学位。

Image for post

翻译自: https://medium.com/nightingale/writing-alt-text-for-data-visualization-2a218ef43f81

如何编写数据库可视化界面

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值