#8563·streamlit

Add alt text to images & charts for improved accessibility

Author: jriekeCreated Apr 25, 2024Updated Sep 28, 2026
Labelstype:enhancementfeature:st.dataframefeature:chartsfeature:st.imagearea:accessibility

Checklist

  • I have searched the existing issues for similar feature requests.
  • I added a descriptive title and summary to this issue.

Summary

Add a way for developers to add alt text to commands such as st.image and chart objects.

Why?

For accessibility reasons, images, charts, and other visualizations should always have alt text that describes the content.

How?

This should probably be a parameter that the developer can set since we can't automatically generate alt text (even though this might be a cool LLM application ). Maybe just a parameter alt or alt_text or alternative_text that accepts a string.

Elements for which we could/should add this:

Note that some of these elements also have other parameters to describe the content (e.g. st.image has a caption parameter), so we'd have to see how these two work together.

Additional Context

No response