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.
python3 -m pip install nicegui-highcharts
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