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.8.0.tar.gz (379.1 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.8.0-py3-none-any.whl (382.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: instaui_echarts-0.8.0.tar.gz
  • Upload date:
  • Size: 379.1 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.8.0.tar.gz
Algorithm Hash digest
SHA256 88e6c0faf9d15e560c6384e3845647a31cc688ba13e2d650a76691de72773afc
MD5 9ca37ca31370ee47f7e6bf233fe89185
BLAKE2b-256 d57195ae3fef0f0cb9d7800eb635c1e91fc697e4d3641d6bc58e5931579060c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: instaui_echarts-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 382.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.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a02e161415dacb49764d92f09ca45afc3d71661180bc11ba7ebe9724563120eb
MD5 733ec6b1697d1cbb18cc47a068a27ea9
BLAKE2b-256 2237aa26e8017385da2c8e4bf879b2cea428710b315e0ca916332163336cec22

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