pyvisacharts


Namepyvisacharts JSON
Version 2.2.0 PyPI version JSON
download
home_pagehttps://github.com/visa/visa-chart-components/tree/main/packages/charts-python
SummaryA Jupyter Widget for Visa Chart Components
upload_time2024-02-16 21:26:24
maintainer
docs_urlNone
authorVisa Data Experience Team
requires_python
licenseSEE LICENSE IN LICENSE
keywords ipython jupyter widgets visa charts visualization viz accessibility a11y d3
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pyvisacharts

This package wraps [@visa/charts](https://github.com/visa/visa-chart-components/tree/main/packages/charts) web components for use in [Python](https://www.python.org/) and [jupyter notebooks](https://jupyter.org/), leveraging the [widget-cookiecutter](https://github.com/jupyter-widgets/widget-cookiecutter) Python package. You can find pyvisacharts on [pypi](https://pypi.org/project/pyvisacharts/), installation steps provided below.

---

### Installation Steps

- Using `pip`:
  ```
  $ pip install pyvisacharts
  ```
- or `conda`:
  ```
  $ conda install -c conda-forge pyvisacharts
  ```

---

#### Components with `Ready` status in this bundle

- [@visa/bar-chart](https://github.com/visa/visa-chart-components/tree/main/packages/bar-chart)
- [@visa/clustered-bar-chart](https://github.com/visa/visa-chart-components/tree/main/packages/clustered-bar-chart)
- [@visa/stacked-bar-chart](https://github.com/visa/visa-chart-components/tree/main/packages/stacked-bar-chart)
- [@visa/line-chart](https://github.com/visa/visa-chart-components/tree/main/packages/line-chart)
- [@visa/pie-chart](https://github.com/visa/visa-chart-components/tree/main/packages/pie-chart)
- [@visa/scatter-plot](https://github.com/visa/visa-chart-components/tree/main/packages/scatter-plot)
- [@visa/heat-map](https://github.com/visa/visa-chart-components/tree/main/packages/heat-map)
- [@visa/circle-packing](https://github.com/visa/visa-chart-components/tree/main/packages/circle-packing)
- [@visa/parallel-plot](https://github.com/visa/visa-chart-components/tree/main/packages/parallel-plot)
- [@visa/dumbbell-plot](https://github.com/visa/visa-chart-components/tree/main/packages/dumbbell-plot)
- [@visa/world-map](https://github.com/visa/visa-chart-components/tree/main/packages/world-map)
- [@visa/alluvial-diagram](https://github.com/visa/visa-chart-components/tree/main/packages/alluvial-diagram)

## <!-- #### Components with `Development` status -->

#### <a name="Python_components" href="#Python_components">#</a> Use VCC as Python functions

<br>

Step 1: Install:

```
$ pip install pyvisacharts
```

Step 2: Use component as any other Python function

```python
import pyvisacharts as vcc
import pandas as pd

bar_chart_data = pd.read_json("https://github.com/visa/visa-chart-components/tree/main/packages/charts-python/docs/demo_data/bar_chart_data.json")
line_chart_data = pd.read_json("https://github.com/visa/visa-chart-components/tree/main/packages/charts-python/docs/demo_data/line_chart_data.json")

vcc.BarChart(
    accessibility={
        "purpose": "Demonstration of a bar chart built with VCC and minimal properties provided.",
        "statisticalNotes": "This chart is using dummy data."
    },
    data=bar_chart_data,
    ordinalAccessor="item",
    valueAccessor="value"
)

vcc.LineChart(
    accessibility={
        "purpose": "Demonstration of a line chart built with VCC and minimal properties provided.",
        "statisticalNotes": "This chart is using dummy data."
    },
    data=line_chart_data, # a pandas data frame
    ordinalAccessor="date",
    valueAccessor="value",
    seriesAccessor="category",
    config={
        "hoverOpacity": 0.25
    }
)
```

See our [VCC Demo Notebook](https://github.com/visa/visa-chart-components/tree/main/packages/charts-python/docs/VCC%20Demo%20Notebook.ipynb) for more examples.

<hr>

### Development Steps

To the python widget locally, you will need to follow the below installation and build steps to symlink the necessary packages across the monorepo.

```
    $ yarn
    $ yarn dev --i
    $ yarn dev --b
    $ yarn dev --ipy
    $ yarn dev --spy (spins up a local jupyter notebook)
    or
    $ yarn dev --lpy (spins up a local jupyter lab)
```

After running these commands, the js lib `@visa/charts` will by symlink'd and a jupyter notebook will be spun up locally for development and testing work. If you update the js build and/or python code you will likely need to restart/refresh the juptyer notebook to see development changes reflected.

In addition to the core project team, special thanks to Luis Chaves Rodriguez ([@visa](https://github.com/luis-chaves-visa)) for his assistance in development of `pyvisacharts`.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/visa/visa-chart-components/tree/main/packages/charts-python",
    "name": "pyvisacharts",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "ipython,jupyter,widgets,visa,charts,visualization,viz,accessibility,a11y,d3",
    "author": "Visa Data Experience Team",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/71/f7/3549bb34948be661566781b50e692278801863544a7316ada202464b2f13/pyvisacharts-2.2.0.tar.gz",
    "platform": null,
    "description": "# pyvisacharts\n\nThis package wraps [@visa/charts](https://github.com/visa/visa-chart-components/tree/main/packages/charts) web components for use in [Python](https://www.python.org/) and [jupyter notebooks](https://jupyter.org/), leveraging the [widget-cookiecutter](https://github.com/jupyter-widgets/widget-cookiecutter) Python package. You can find pyvisacharts on [pypi](https://pypi.org/project/pyvisacharts/), installation steps provided below.\n\n---\n\n### Installation Steps\n\n- Using `pip`:\n  ```\n  $ pip install pyvisacharts\n  ```\n- or `conda`:\n  ```\n  $ conda install -c conda-forge pyvisacharts\n  ```\n\n---\n\n#### Components with `Ready` status in this bundle\n\n- [@visa/bar-chart](https://github.com/visa/visa-chart-components/tree/main/packages/bar-chart)\n- [@visa/clustered-bar-chart](https://github.com/visa/visa-chart-components/tree/main/packages/clustered-bar-chart)\n- [@visa/stacked-bar-chart](https://github.com/visa/visa-chart-components/tree/main/packages/stacked-bar-chart)\n- [@visa/line-chart](https://github.com/visa/visa-chart-components/tree/main/packages/line-chart)\n- [@visa/pie-chart](https://github.com/visa/visa-chart-components/tree/main/packages/pie-chart)\n- [@visa/scatter-plot](https://github.com/visa/visa-chart-components/tree/main/packages/scatter-plot)\n- [@visa/heat-map](https://github.com/visa/visa-chart-components/tree/main/packages/heat-map)\n- [@visa/circle-packing](https://github.com/visa/visa-chart-components/tree/main/packages/circle-packing)\n- [@visa/parallel-plot](https://github.com/visa/visa-chart-components/tree/main/packages/parallel-plot)\n- [@visa/dumbbell-plot](https://github.com/visa/visa-chart-components/tree/main/packages/dumbbell-plot)\n- [@visa/world-map](https://github.com/visa/visa-chart-components/tree/main/packages/world-map)\n- [@visa/alluvial-diagram](https://github.com/visa/visa-chart-components/tree/main/packages/alluvial-diagram)\n\n## <!-- #### Components with `Development` status -->\n\n#### <a name=\"Python_components\" href=\"#Python_components\">#</a> Use VCC as Python functions\n\n<br>\n\nStep 1: Install:\n\n```\n$ pip install pyvisacharts\n```\n\nStep 2: Use component as any other Python function\n\n```python\nimport pyvisacharts as vcc\nimport pandas as pd\n\nbar_chart_data = pd.read_json(\"https://github.com/visa/visa-chart-components/tree/main/packages/charts-python/docs/demo_data/bar_chart_data.json\")\nline_chart_data = pd.read_json(\"https://github.com/visa/visa-chart-components/tree/main/packages/charts-python/docs/demo_data/line_chart_data.json\")\n\nvcc.BarChart(\n    accessibility={\n        \"purpose\": \"Demonstration of a bar chart built with VCC and minimal properties provided.\",\n        \"statisticalNotes\": \"This chart is using dummy data.\"\n    },\n    data=bar_chart_data,\n    ordinalAccessor=\"item\",\n    valueAccessor=\"value\"\n)\n\nvcc.LineChart(\n    accessibility={\n        \"purpose\": \"Demonstration of a line chart built with VCC and minimal properties provided.\",\n        \"statisticalNotes\": \"This chart is using dummy data.\"\n    },\n    data=line_chart_data, # a pandas data frame\n    ordinalAccessor=\"date\",\n    valueAccessor=\"value\",\n    seriesAccessor=\"category\",\n    config={\n        \"hoverOpacity\": 0.25\n    }\n)\n```\n\nSee our [VCC Demo Notebook](https://github.com/visa/visa-chart-components/tree/main/packages/charts-python/docs/VCC%20Demo%20Notebook.ipynb) for more examples.\n\n<hr>\n\n### Development Steps\n\nTo the python widget locally, you will need to follow the below installation and build steps to symlink the necessary packages across the monorepo.\n\n```\n    $ yarn\n    $ yarn dev --i\n    $ yarn dev --b\n    $ yarn dev --ipy\n    $ yarn dev --spy (spins up a local jupyter notebook)\n    or\n    $ yarn dev --lpy (spins up a local jupyter lab)\n```\n\nAfter running these commands, the js lib `@visa/charts` will by symlink'd and a jupyter notebook will be spun up locally for development and testing work. If you update the js build and/or python code you will likely need to restart/refresh the juptyer notebook to see development changes reflected.\n\nIn addition to the core project team, special thanks to Luis Chaves Rodriguez ([@visa](https://github.com/luis-chaves-visa)) for his assistance in development of `pyvisacharts`.\n",
    "bugtrack_url": null,
    "license": "SEE LICENSE IN LICENSE",
    "summary": "A Jupyter Widget for Visa Chart Components",
    "version": "2.2.0",
    "project_urls": {
        "Bug Reports": "https://github.com/visa/visa-chart-components/issues",
        "Homepage": "https://github.com/visa/visa-chart-components/tree/main/packages/charts-python",
        "Source": "https://github.com/visa/visa-chart-components/tree/main/packages/charts-python",
        "Storybook Demo": "https://visa.github.io/visa-chart-components/",
        "Visa Chart Components": "https://github.com/visa/visa-chart-components"
    },
    "split_keywords": [
        "ipython",
        "jupyter",
        "widgets",
        "visa",
        "charts",
        "visualization",
        "viz",
        "accessibility",
        "a11y",
        "d3"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6fe8bcb2113c32538058885e13279c30a34b4b22383535ec4c2eedd2a8f1875d",
                "md5": "c9e417d044d80b01dd282502f7535075",
                "sha256": "a741be4d629a0574cc8b5c55228631f431e40fd5c1c56b4e48446e1881304440"
            },
            "downloads": -1,
            "filename": "pyvisacharts-2.2.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c9e417d044d80b01dd282502f7535075",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 2775109,
            "upload_time": "2024-02-16T21:26:21",
            "upload_time_iso_8601": "2024-02-16T21:26:21.522727Z",
            "url": "https://files.pythonhosted.org/packages/6f/e8/bcb2113c32538058885e13279c30a34b4b22383535ec4c2eedd2a8f1875d/pyvisacharts-2.2.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "71f73549bb34948be661566781b50e692278801863544a7316ada202464b2f13",
                "md5": "6055208a824d2fb76e3cb7c037e9f943",
                "sha256": "078b8c4dcab0a69b461180e07c3348bd612d6e8c2f69e9b732501b55c2319bc8"
            },
            "downloads": -1,
            "filename": "pyvisacharts-2.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "6055208a824d2fb76e3cb7c037e9f943",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2145215,
            "upload_time": "2024-02-16T21:26:24",
            "upload_time_iso_8601": "2024-02-16T21:26:24.668978Z",
            "url": "https://files.pythonhosted.org/packages/71/f7/3549bb34948be661566781b50e692278801863544a7316ada202464b2f13/pyvisacharts-2.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-16 21:26:24",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "visa",
    "github_project": "visa-chart-components",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pyvisacharts"
}
        
Elapsed time: 0.22509s