Skip to main content

A package to make specific types of graphs accessible to low vision and blind users

Project description

Accessible graphs package

This package enables you to experience graphs in an accessible manner if you're a blind person who uses a screen reader with or without a braille display.

How it works?

To get the accessible graph, you need to:

  • Import the package as follows:

    import accessible_graphs_pkg

  • Call the function "getAccessibleGraph" as follows:

    accessible_graphs_pkg.accessibleGraphs.getAccessibleGraph(rawData, description)

The "getAccessibleGraph function accepts 2 arguments:

  • raw Data - which could be:
    • A list of numerical values representing the graph
    • A dict, where the keys are the labels for the data, and the values are the numbers corresponding to each label
  • description - an optional string describing the graph

Example 1

Suppose we want to make the following graph accessible, represented by the following values:

1500, 1300, 1700, 2000, 1000, 1450, 1900

Suppose also we want to give the description "Demo stock example" to our graph.

Then we call our function as follows:

accessible_graphs_pkg.accessibleGraphs.getAccessibleGraph([1500, 1300, 1700, 2000, 1000, 1450, 1900], 'Demo stock example')

We then are supposed to get a graph similar to the one in this link

Example 2

Let's now talk about more realistic example. Suppose we want to get the graph describing the following stock to be accessible, when represented by a list of key-value pairs, where the key is the day in the week, and the value is the value of the stock:

Sunday: 1500

Monday: 1300

Tuesday: 1700

Wednesday: 2000

Thursday: 1000

Friday: 1450

Saturday: 1900

Suppose also we want to give the description "Demo stock example" to our graph as before.

Then we call our function as follows:

accessible_graphs_pkg.accessibleGraphs.getAccessibleGraph({'Sunday': 1500, 'Monday': 1300, 'Tuesday': 1700, 'Wednesday': 2000, 'Thursday': 1000, 'Friday': 1450, 'Saturday': 1900}, 'Demo stock example')

Then we are supposed to get a graph similar to the one in this link

Some useful links

Project details


Download files

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

Source Distribution

accessible_graphs-0.0.3.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

accessible_graphs-0.0.3-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file accessible_graphs-0.0.3.tar.gz.

File metadata

  • Download URL: accessible_graphs-0.0.3.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.5

File hashes

Hashes for accessible_graphs-0.0.3.tar.gz
Algorithm Hash digest
SHA256 be5ea5b169e7937ada545c8b08afa8255e9499337ff5e6212f469d38e7b70151
MD5 7292b3f30d59a83c24b6c4450181d1ff
BLAKE2b-256 a771da9a8d62f825e55b66011ba08a2019dc9a21853f29fdd5b174e3d074dbcb

See more details on using hashes here.

File details

Details for the file accessible_graphs-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: accessible_graphs-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.5

File hashes

Hashes for accessible_graphs-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a82acc5fb31d6b0ad46870aad61953c1383c27ff6e0081ab6a643479ea5685b6
MD5 f59206201c6a4cf2d7e47af41ddc2855
BLAKE2b-256 1150f17fd4a959959885f7f2d54c2617f806afe9d91fb68e927a3b28a0caf5b0

See more details on using hashes here.

Supported by

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