Create charts for E360 Plotly Visualisations.
Project description
E360 Charting (VRS)
Create charts for E360 Plotly Visualisations.
Introduction
- Creates payloads for E360 Visualisation Resource Service (VRS).
- VRS payloads have a Plotly-like structure, but are significantly different.
- Merge multiple charts into a single report.
- Convert visualisation instances to pure Plotly payloads.
Requirements
- Python 3.12+
- Runtime dependencies are declared in
pyproject.toml. Optional Plotly/pandas integration:pip install e360_charting[full](oruv syncwith thefullextra when using uv).
This package does not depend on clients_core; no sibling clients-core checkout is required.
Development
Requires Python 3.12+ and uv. Runtime dependencies resolve from PyPI only (no internal E360 wheels). If a future release adds internal dependencies, pin them in [project.dependencies] with version bounds and [tool.uv.sources] index = "e360-pypi" (see clients-core). On the corporate network you can set:
export UV_INDEX_URL=https://rwes-artifactory01.internal.imsglobal.com/artifactory/api/pypi/e360-pypi/simple
before uv lock / uv sync when locking against Artifactory.
From the repository root:
uv sync --group dev
uv run pytest
uv run ruff check e360_charting tests
uv run ruff format e360_charting tests
Install pre-commit hooks into this git repository
pre-commit install --install-hooks --overwrite
Quick start
from e360_charting import PieVisualisation
from e360_charting import AnnotationModel # Optional
# Create a simple visualisation instance
vis = PieVisualisation(
report_title='My Pie Chart',
labels=['a', 'b', 'c'],
values=[33, 66, 1],
annotations=[AnnotationModel(text='Some Text', x=0.5, y=0.5)] # Optional
)
# Get a payload from the instance as a dictionary
vis.dump() # -> {...}
# Convert to a pure Plotly payload
vis.as_plotly().dump() # -> {...}
Grouping
from e360_charting import GroupedVisualisations
"""Extends previous example"""
# Instance for holding multiple reports
group = GroupedVisualisations()
# Add a visualisation to the group
group += vis # This way multiple instances can be merged
# Use the group to dump to a VRS payload
group.dump() # -> {...}
Charting classes available
e360_charting.BarStackStratifiedVisualisatione360_charting.BarStackVisualisatione360_charting.BarStratifiedVisualisatione360_charting.BarVisualisatione360_charting.DonutVisualisatione360_charting.FallenTreePlotStratifiedVisualisatione360_charting.FallenTreePlotVisualisatione360_charting.MultiChartAxesVisualisatione360_charting.MultiLineStratifiedVisualisatione360_charting.MultiLineVisualisatione360_charting.MultiSteppedLineStratifiedVisualisatione360_charting.MultiSteppedLineVisualisatione360_charting.MultiStraightLineStratifiedVisualisatione360_charting.PieVisualisatione360_charting.RelativeBarStackStratifiedVisualisatione360_charting.RelativeBarStackVisualisatione360_charting.SankeyVisualisatione360_charting.StaticSankeyVisualisatione360_charting.SunburstVisualisatione360_charting.TableStratifiedVisualisatione360_charting.TableVisualisatione360_charting.WaterfallStratifiedVisualisatione360_charting.WaterfallVisualisation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file e360_charting-2.0.0-py3-none-any.whl.
File metadata
- Download URL: e360_charting-2.0.0-py3-none-any.whl
- Upload date:
- Size: 27.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e8019c9866e4f0e4c992fb7cf9abbb27e7bd7703a71ccebca29157343f60bd8
|
|
| MD5 |
0be2724dc90ffb19316882f861dcb436
|
|
| BLAKE2b-256 |
daf3050a993339e36cb821ee9c33a7fb8c946d20e248b76ecbf5f3d92de71cf4
|