Skip to main content

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.7.0.tar.gz (386.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

instaui_echarts-0.7.0-py3-none-any.whl (392.7 kB view details)

Uploaded Python 3

File details

Details for the file instaui_echarts-0.7.0.tar.gz.

File metadata

  • Download URL: instaui_echarts-0.7.0.tar.gz
  • Upload date:
  • Size: 386.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.4 {"installer":{"name":"uv","version":"0.11.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for instaui_echarts-0.7.0.tar.gz
Algorithm Hash digest
SHA256 6dc1e2790bfd3e6f0baa7f46e80882311d0ca29936f3fb0be9c5a99897a941a0
MD5 da87055aad0e7b407c680c241f8580b0
BLAKE2b-256 8629260a0e61ed91e2db1b2291ecd8d78ee8f81986ae6fc42e17bfebdb181032

See more details on using hashes here.

File details

Details for the file instaui_echarts-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: instaui_echarts-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 392.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.4 {"installer":{"name":"uv","version":"0.11.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for instaui_echarts-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3d9b0078d079038535f63a44d1211388b605e96e5e9effdd113d1a6016427ddd
MD5 69859d0913a6cf7899cee8f58203d987
BLAKE2b-256 0e07bfbe6647f2884ba5cfa588acc95179fdafb9f975d64b4519d4b290207af0

See more details on using hashes here.

Supported by

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