Skip to main content

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 option is 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...

Release files for reflex-echarts 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 reflex-echarts 0.1.0
File Size Uploaded
reflex_echarts-0.1.0.tar.gz 31.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for reflex-echarts 0.1.0
File Interpreter ABI Platform
reflex_echarts-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 34.4 kB

Release files / reflex_echarts-0.1.0.tar.gz

Download URL reflex_echarts-0.1.0.tar.gz
Size 31.2 kB
Tags Source
SHA-256 checksum
How to use checksums
504b9a536256ade9587448afbb0fc6b2317c55f83ec9724cb11677bc52e4fd9d
BLAKE2b-256 checksum
How to use checksums
307e2d74b3f028e59199e1bbb938aa31cdcb73aebeac6964c33bee09cd8290e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

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

Download URL reflex_echarts-0.1.0-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2130d1b4f5ec9e2d8969b6c20cc462f439f6cd40e6061cae518a68f282f78bbd
BLAKE2b-256 checksum
How to use checksums
52b6ba8130dea4e5ce168c846cc11605681adb81f0f7eb1c0101824d4b07bdb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.1

2 release files

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