Skip to main content

canvasxpress-dash

CanvasXpress interactive charts in Dash apps — no JavaScript build step. CanvasXpress(...) returns a self-contained html.Iframe that loads the library from the CanvasXpress CDN and renders one chart.

Install

pip install canvasxpress-dash

Use

from dash import Dash, html
from canvasxpress_dash import CanvasXpress

app = Dash(__name__)

app.layout = html.Div([
    html.H2("CanvasXpress in Dash"),
    CanvasXpress(
        data={
            "y": {
                "vars": ["Revenue"],
                "smps": ["Q1", "Q2", "Q3", "Q4"],
                "data": [[10, 14, 9, 17]],
            }
        },
        config={"graphType": "Bar", "title": "Quarterly Revenue"},
        height=420,
    ),
])

if __name__ == "__main__":
    app.run(debug=True)

data and config are exactly the arguments of new CanvasXpress({...}) in JavaScript, so any spec from the gallery or the R / Python packages works unchanged.

Parameters

Argument Type Default Meaning
data dict {} CanvasXpress data object.
config dict {} CanvasXpress configuration (graphType, title, …).
width int 600 Canvas width in pixels.
height int 400 Canvas height in pixels.
id str auto Dash component id.

Extra keyword arguments (className, style, …) pass through to the underlying html.Iframe.

License

Dual-licensed. The core library is LGPL-3.0-or-later; commercial terms are available — see https://canvasxpress.org/license.html.

Metadata

Release files for canvasxpress-dash 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for canvasxpress-dash 0.1.0
File Size Uploaded Provenance Actions
canvasxpress_dash-0.1.0.tar.gz 2.8 kB Without provenance Details for canvasxpress_dash-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for canvasxpress-dash 0.1.0
File Interpreter ABI Platform Actions
canvasxpress_dash-0.1.0-py3-none-any.whl Python 3 none any Details for canvasxpress_dash-0.1.0-py3-none-any.whl

Total release size: 6.2 kB

Release files / canvasxpress_dash-0.1.0.tar.gz

Download URL canvasxpress_dash-0.1.0.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4c5090dcbd02449b4eda036f2ac85e1acfdf5b982841db9e1899cf1427c1e7f1
BLAKE2b-256 checksum
How to use checksums
b67815535b2f2f98769285e26cb1ad722937f69782b8c9a753b46e9ade46398d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / canvasxpress_dash-0.1.0-py3-none-any.whl

Download URL canvasxpress_dash-0.1.0-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
55bbe742f63fd85d9e5baa4bc2504ec3759f1def599d3d1a0dc316439f38f784
BLAKE2b-256 checksum
How to use checksums
1c84e2e100ed32e0d579c7393d570ab99d7600fd82f008969c25c131e90811eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for canvasxpress-dash 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page