Skip to main content

Accesible themes and functions to create accessible graph for Altair

Project description

Altair-Easeviz


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.

Installation


The library and its dependencies can be easily installed, using:

pip install altair-easeviz

Documentation


Documentation for this library can be found here.

Features


  • 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

Example


This next example shows how to enable one of our four themes. More examples are available in our documentation .

Bar Chart with accessible theme

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'
)

Getting Help


For bugs and feature requests, please open a Github Issue.

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

altair_easeviz-1.0.tar.gz (25.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page