Skip to main content

Add Highcharts elements to your NiceGUI app.

Project description

NiceGUI Highcharts

This package is an extension for NiceGUI, an easy-to-use, Python-based UI framework. It provides a highchart element based on Highcharts, the popular JavaScript charting library. Due to Highcharts' restrictive license, this element is not part of the NiceGUI package anymore, but can be install separately.

Installation

python3 -m pip install nicegui-highcharts

Usage

Write your nice GUI in a file main.py:

from nicegui import ui

ui.highchart({
    'title': False,
    'chart': {'type': 'bar'},
    'xAxis': {'categories': ['A', 'B']},
    'series': [
        {'name': 'Alpha', 'data': [0.1, 0.2]},
        {'name': 'Beta', 'data': [0.3, 0.4]},
    ],
})

ui.run()

NiceGUI recognizes the installation of the nicegui-highcharts package and adds it to the ui namespace. For more information, see https://nicegui.io/documentation/highchart.

Launch it with:

python3 main.py

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

nicegui_highcharts-1.0.1.tar.gz (2.1 MB view hashes)

Uploaded Source

Built Distribution

nicegui_highcharts-1.0.1-py3-none-any.whl (2.2 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page