drogbadvc / streamlit-apexcharts

A Streamlit simple component to display ApexChart.

Home Page:https://pypi.org/project/streamlit-apexjs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Streamlit - ApexCharts ReactJS

A Streamlit simple component to display ApexChart.

Install

pip install streamlit_apexjs

Usage

from streamlit_apexjs import st_apexcharts
options = {
    "chart": {
        "toolbar": {
            "show": False
        }
    },

    "labels": [1991, 1992, 1993, 1994, 1995]
    ,
    "legend": {
        "show": True,
        "position": "bottom",
    }
}

series = [44, 55, 41, 17, 15]

st_apexcharts(options, series, 'donut', '600', 'title')

st_apexcharts params

st_apexcharts(
    options: Dict
    series: List
    type: str
    width: str, number
    title: str
)

Credit

Thank you for inspiration :) andfanilo.

About

A Streamlit simple component to display ApexChart.

https://pypi.org/project/streamlit-apexjs/

License:MIT License


Languages

Language:TypeScript 42.4%Language:Python 41.2%Language:HTML 14.2%Language:Shell 2.3%