Skip to main content

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reflex-echarts-0.0.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

reflex_echarts-0.0.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file reflex-echarts-0.0.1.tar.gz.

File metadata

  • Download URL: reflex-echarts-0.0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for reflex-echarts-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d17b72bc172164ea3a6d24fceb522e519f93cb47bcd92b2d239bbca5d03d858e
MD5 b7779ca21cf0bf3db8edb5a362284549
BLAKE2b-256 82039a7e4abcfe223572c971557bd950e9f398a349280380a495d2b954f64eaf

See more details on using hashes here.

File details

Details for the file reflex_echarts-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for reflex_echarts-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1757932ceccff1e0476b553b912d9c8920d133289e02925ed4ef402d47d7b8b2
MD5 8fbaab187a74377f1b7ea9c9a3ba8e08
BLAKE2b-256 22efc478adbfeba5fc66a7d26fb0f05f0846b3208860ff11ddf0ea44381f98d2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page