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
This package is MIT-licensed. The CanvasXpress JavaScript library it loads is distributed separately under the CanvasXpress Community License (Attribution), free with a visible attribution mark and with commercial terms for mark removal — see https://www.canvasxpress.org/license.html. https://canvasxpress.org/license.html.
Metadata
Release files for canvasxpress-dash 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| canvasxpress_dash-0.1.1.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| canvasxpress_dash-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.0 kB
Release files / canvasxpress_dash-0.1.1.tar.gz
| Download URL | canvasxpress_dash-0.1.1.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a784f22b0b1ffa3526c93b2f53a2b50e4d1afb3f3c8793f5ee2b7996e77a7d58
|
|
BLAKE2b-256 checksum How to use checksums |
a823417d34eaa96b0e9522881e4715c14875b44ffd4a4ca8842005cdfbd48cf8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency logRelease files / canvasxpress_dash-0.1.1-py3-none-any.whl
| Download URL | canvasxpress_dash-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8ea8fd5fb7fc0733e4ffb1b1f32d346fc2f740ce5e37eb23bb59aeee6a8ed8c2
|
|
BLAKE2b-256 checksum How to use checksums |
6bf5cb2520a239c08f74887e1e795ac784317406735b082c5aec68e620a23945
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency log