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

Uploaded Source

File details

Details for the file altair_easeviz-1.0.tar.gz.

File metadata

  • Download URL: altair_easeviz-1.0.tar.gz
  • Upload date:
  • Size: 25.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.0

File hashes

Hashes for altair_easeviz-1.0.tar.gz
Algorithm Hash digest
SHA256 aa656e3af07cb7bc1e68e18dfa1fb9ef9be41ed6286d138d5b06ddef15f0ad8f
MD5 4c03017909407c7df82bfc0168fc791f
BLAKE2b-256 acf3eeda2aab13f1dd911852290d32c849bf02a5ce71c74274aca12affd3f5e6

See more details on using hashes here.

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