Skip to main content

Reusable html-based python visualization library

Project description

vislib

A library of web-based visualizations for python and ipython

Set Up / Usage

pip install vislib

vislib is set up to optionally be used within an ipython interactive environment. If used outside of ipython, it will generate html files and open the default browser with the created visualizations.

Visualizations

vis.js timeline

A library for rich interactive timelines. Renders a vis.js timeline component. See http://visjs.org/docs/timeline/

from vislib.visjs import timeline
timeline([{'text': 'first item', 'start': '2018-05-21 17:30:08.202'},
          {'text': 'second item', 'start': "2018-05-21 17:31:53.712"},
          {'text': 'third item', 'start': "2018-05-21 18:14:05.843"}], content_field='text', title='example1')

Taucharts

A d3 based charting library that elegantly mixes power and simplicity. Renders a basic taucharts chart with the given data. See https://www.taucharts.com/

from vislib.taucharts import chart
chart([{'item': 'car', 'amount': 1},
       {'item': 'book', 'amount': 10},
       {'item': 'bed', 'amount': 3}], x='item', y='amount', title='Taucharts example')

Treant

Renders a Treant.js tree. See http://fperucic.github.io/treant-js/

from vislib.treant import tree
tree({
        'text': { 'name': "Parent node" },
        'children': [{
            'text': { 'name': "First child" }
        },{
            'text': { 'name': "Second child" }
        }]
    })

Development

Generate Documentation

 cd docs
 rm -rf _build
 make html

Publish

rm -rf dist
python setup.py sdist bdist_wheel
twine upload dist/*

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

vislib-0.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

vislib-0.2-py2-none-any.whl (6.0 kB view details)

Uploaded Python 2

File details

Details for the file vislib-0.2.tar.gz.

File metadata

  • Download URL: vislib-0.2.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for vislib-0.2.tar.gz
Algorithm Hash digest
SHA256 2cdd80e7ea2626c2521377954dde36c5b1436bddb34c5403df6a9cb206920774
MD5 7bdecc1fba7c35989e82f300ae89b747
BLAKE2b-256 269b329851b9c019b99396c40598a1843a63050ad85ba7dca1bd578fc6244002

See more details on using hashes here.

File details

Details for the file vislib-0.2-py2-none-any.whl.

File metadata

File hashes

Hashes for vislib-0.2-py2-none-any.whl
Algorithm Hash digest
SHA256 1f6386da4eaddf2e55a91018a6002a2d8034c75cf23c02495c27199a47f109d8
MD5 e271081d4094ce4af8d6fc33c1513604
BLAKE2b-256 8f664307bc6290bd5b273df9ad4fbfc560fe600b8ccb33e034b8cf693d4f82f7

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