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.6.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.6.0-py3-none-any.whl (387.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: instaui_echarts-0.6.0.tar.gz
  • Upload date:
  • Size: 383.0 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.6.0.tar.gz
Algorithm Hash digest
SHA256 07ff4f5b17fb531e5bc6bd626db57e99a514e8bb3833fd8c73f365189a3baed3
MD5 eb672f6900be255ef45c6182835186c3
BLAKE2b-256 ca82510aff8c8e1cd7db3276504b1810426399772463b2fc79a7ceb51ad4358c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: instaui_echarts-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 387.8 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.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 da589ef3a5770cb9e3170159494f6e711cae8d9b4edf773de7f909f59b26f8f3
MD5 3b68e6fbc4647b152ab766c666039796
BLAKE2b-256 862bce7a85c983eb1f3224a0d68636bbdda447e6464ad8e7241ad55377c1ebcf

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