This Python library is dedicated to providing resources for Vega-Altair, with the aim of enhancing the creation of improved and more accessible graphs. The development of this library involved a thorough exploration of both the Altair and Vega-Lite APIs.
The library and its dependencies can be easily installed, using:
pip install altair-easeviz
Documentation for this library can be found here.
- Initial release of four accessible themes for Vega-Altair
- Generate description for charts added
- HTML with accessible functions added
- Models for creation and customization themes of vega-lite specification added
This next example shows how to enable one of our four themes. More examples are available in our documentation .
import altair as alt
import pandas as pd
# Enable Theme accessible_theme, dark_accessible_theme, filler_pattern_theme, print_theme
alt.themes.enable('accessible_theme')
# Define a Chart
source = pd.DataFrame({
'a': ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I'],
'b': [28, 55, 43, 91, 81, 53, 19, 87, 52]
})
alt.Chart(source).mark_bar().encode(
x='a',
y='b'
)For bugs and feature requests, please open a Github Issue.
This project was developed alongside Dr. Mireia Ribera as an advisor on topics related to accessibility.
The project was developed as the final project for the University of Barcelona in the degree of Computer Science.
