Skip to content

zauberzeug/nicegui-highcharts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

da8dc92 · Aug 31, 2024

History

20 Commits
Aug 31, 2024
Aug 7, 2024
Aug 31, 2024
Oct 24, 2023
Oct 23, 2023
Aug 7, 2024
Aug 31, 2024
Oct 24, 2023
Oct 24, 2023
Aug 7, 2024
Aug 7, 2024
Oct 23, 2023
Aug 31, 2024
Aug 31, 2024

Repository files navigation

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