Skip to main content

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.

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.BarStackStratifiedVisualisation
  • e360_charting.BarStackVisualisation
  • e360_charting.BarStratifiedVisualisation
  • e360_charting.BarVisualisation
  • e360_charting.DonutVisualisation
  • e360_charting.FallenTreePlotStratifiedVisualisation
  • e360_charting.FallenTreePlotVisualisation
  • e360_charting.MultiChartAxesVisualisation
  • e360_charting.MultiLineStratifiedVisualisation
  • e360_charting.MultiLineVisualisation
  • e360_charting.MultiSteppedLineStratifiedVisualisation
  • e360_charting.MultiSteppedLineVisualisation
  • e360_charting.MultiStraightLineStratifiedVisualisation
  • e360_charting.PieVisualisation
  • e360_charting.RelativeBarStackStratifiedVisualisation
  • e360_charting.RelativeBarStackVisualisation
  • e360_charting.SankeyVisualisation
  • e360_charting.StaticSankeyVisualisation
  • e360_charting.SunburstVisualisation
  • e360_charting.TableStratifiedVisualisation
  • e360_charting.TableVisualisation
  • e360_charting.WaterfallStratifiedVisualisation
  • e360_charting.WaterfallVisualisation

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

e360_charting-1.11.0-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

File details

Details for the file e360_charting-1.11.0-py3-none-any.whl.

File metadata

File hashes

Hashes for e360_charting-1.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48dbd3764f216e601912fc414faeb5c8a7be19408710bf831819708f5e34efa3
MD5 7d8b0be40b4ec6f0e5965d3d05129933
BLAKE2b-256 22b782551953a2baab81f8299808f92c8f71650aafd8e4ff2b090b580b4f0344

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