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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 canvasxpress_dash-0.1.0.tar.gz.
File metadata
- Download URL: canvasxpress_dash-0.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c5090dcbd02449b4eda036f2ac85e1acfdf5b982841db9e1899cf1427c1e7f1
|
|
| MD5 |
e90ef52ef135ce08d2cee3ade522f859
|
|
| BLAKE2b-256 |
b67815535b2f2f98769285e26cb1ad722937f69782b8c9a753b46e9ade46398d
|
File details
Details for the file canvasxpress_dash-0.1.0-py3-none-any.whl.
File metadata
- Download URL: canvasxpress_dash-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55bbe742f63fd85d9e5baa4bc2504ec3759f1def599d3d1a0dc316439f38f784
|
|
| MD5 |
7be6362ce77d7446e9df139582921028
|
|
| BLAKE2b-256 |
1c84e2e100ed32e0d579c7393d570ab99d7600fd82f008969c25c131e90811eb
|