Reflex Wrapper for echarts-for-react library.
Project description
reflex-echarts
A Reflex wrapper for echarts-for-react library.
Installation
pip install reflex-echarts
Usage
See echarts_demo/echarts_demo.py for a working example.
Props are based on the echarts-for-react library, so please refer to the
documentation there for further explanation.
Themes
Themes can be set by passing a theme prop to the ECharts component.
To load custom themes, provide the JS code that ultimately calls echarts.registerTheme as
a string to the register_theme_code prop (this cannot be a State Var).
Limitations
- Event handling is not yet implemented.
- Inline functions for formatters and data key extraction is not implemented.
Due to how the chart
optionis serialized as JSON, there is not a clean way to pass inline functions from the Python backend to the Javascript frontend. - All chart types are available, which increases the bundle size of the application. There is not currently a mechanism to only include the chart types which are used.
- Cannot figure out how to load external themes from a JS file...
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 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 reflex_echarts-0.1.0.tar.gz.
File metadata
- Download URL: reflex_echarts-0.1.0.tar.gz
- Upload date:
- Size: 31.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
504b9a536256ade9587448afbb0fc6b2317c55f83ec9724cb11677bc52e4fd9d
|
|
| MD5 |
bf25e5bd24f18bb18af6ca786975bb97
|
|
| BLAKE2b-256 |
307e2d74b3f028e59199e1bbb938aa31cdcb73aebeac6964c33bee09cd8290e2
|
File details
Details for the file reflex_echarts-0.1.0-py3-none-any.whl.
File metadata
- Download URL: reflex_echarts-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2130d1b4f5ec9e2d8969b6c20cc462f439f6cd40e6061cae518a68f282f78bbd
|
|
| MD5 |
505c3801cf23c34b70b81a98afb3ddc1
|
|
| BLAKE2b-256 |
52b6ba8130dea4e5ce168c846cc11605681adb81f0f7eb1c0101824d4b07bdb7
|