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.5.0.tar.gz (383.0 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.5.0-py3-none-any.whl (387.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: instaui_echarts-0.5.0.tar.gz
  • Upload date:
  • Size: 383.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.2

File hashes

Hashes for instaui_echarts-0.5.0.tar.gz
Algorithm Hash digest
SHA256 7dd4b8f3f712ad9f919d96914b403cdcdc9ba5a1e7e88602512f73229a9eb4e4
MD5 a7ea70c6ee9be6afd02958e7f680c2e9
BLAKE2b-256 026c1cd9dc3f2e149d3da7e9785d802ed0d1eb822cb10032dd86384ab18d6dda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for instaui_echarts-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc1370df067d1a0a173451f9655b64d97d081833a5140ee5f879b9f528309bc8
MD5 5dd19955cf56171b556a76aa0d9b9ff9
BLAKE2b-256 b0a40af9056a128ee73fa7180143c0a2fd0e00a6f790c4971191abc0c3955b33

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