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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for instaui_echarts-0.4.2.tar.gz
Algorithm Hash digest
SHA256 095c3c6df6b41394de6d509b760ddbe776264ddc5d317e7d0c59f60789a8258c
MD5 8fca346f671feee6533f8a632e3e4c4a
BLAKE2b-256 a81bff5178841892bc81ff7d7c732be14bf1d602ffc63653114f97a67a3c414b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for instaui_echarts-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a5373b046f8e102fbfdcaf4410ab672ebcc50e65aa7b12cec4a71408bbd4515a
MD5 43bb67e0e83cc0c86ef3d48e88289aac
BLAKE2b-256 1c304088ba498f5a026f248eb2c4d46c138ede01e27469fb42cdb3bc23ba3009

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