A Python package for instaui-echarts.
Project description
instaui-echarts
English| 简体中文
📖 Introduction
instaui-echarts is a Python package for instaui, which provides a component for rendering ECharts.
⚙️ Installation
pip install instaui-echarts
🖥️ Usage
from instaui import ui
from instaui_echarts import echarts
@ui.page("/")
def test_page():
opts = {
"title": {"text": "ECharts Getting Started Example"},
"tooltip": {},
"legend": {"data": ["sales"]},
"xAxis": {
"data": ["Shirts", "Cardigans", "Chiffons", "Pants", "Heels", "Socks"]
},
"yAxis": {},
"series": [{"name": "sales", "type": "bar", "data": [5, 20, 36, 10, 10, 20]}],
}
echarts(opts)
ui.server(debug=True).run()
use graphics
from instaui import ui
from instaui_echarts import echarts, graphics as gh
@ui.page()
def test():
options = gh.option(
gh.data(
[
{"x": "A", "y": 10},
{"x": "B", "y": 20},
{"x": "C", "y": 30},
]
),
gh.bar_y(),
)
echarts(options)
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
instaui_echarts-0.4.1.tar.gz
(382.6 kB
view details)
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 instaui_echarts-0.4.1.tar.gz.
File metadata
- Download URL: instaui_echarts-0.4.1.tar.gz
- Upload date:
- Size: 382.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12d53487cba9f36321fe8746e744bbb415a11df435a47ead1299a435425e01d6
|
|
| MD5 |
f9c9012c1d6c8145f8e6474722e70c29
|
|
| BLAKE2b-256 |
6a4f2f3d3b80ad41a21c8465ce253cc3e6a764aa8e3e52c38ad2f07288725f4a
|
File details
Details for the file instaui_echarts-0.4.1-py3-none-any.whl.
File metadata
- Download URL: instaui_echarts-0.4.1-py3-none-any.whl
- Upload date:
- Size: 386.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb70653d786ebeb6b49b027c759efafaaedc573a5a5b2e19e8f2993c2357e492
|
|
| MD5 |
78c77a4c9e2bec39abfaa5439305b5dc
|
|
| BLAKE2b-256 |
65eea19ad7dfd24ece2940f74d6e8dd39f16a07ea4702c70d6df3bba403cf335
|