reflex-highcharts is a powerful component designed to integrate the popular charting library,
Project description
reflex-highchart
reflex-highcharts is a powerful component designed to integrate the popular charting library, Highcharts, into your Reflex web applications. This integration allows you to create visually appealing and interactive charts with ease.
Installation
pip install reflex-highchart
Example
import reflex as rx
from reflex_highchart import reflex_highchart
def highchart_example():
return {
"title": {
"text": "Sales by Month"
},
"xAxis": {
"title": {
"text": "Month",
},
"categories": ["Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
},
"yAxis": {
"title": {
"text": "Total Sales"
}
},
"series": [
{"type": "column",
"name": "Total Sales",
"data": [
[0, 30],
[1, 17],
[2, 20],
[3, 12],
[4, 23],
[5, 14],
[6, 16],
[7, 19],
[8, 22],
[9, 13],
[10, 16],
[11, 15]
]}
]
}
def index() -> rx.Component:
return rx.center(
rx.vstack(
reflex_highchart(
options=highchart_example(),
)
)
)
# Add state and page to the app.
app = rx.App()
app.add_page(index)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
reflex_highchart-0.0.1.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for reflex_highchart-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 898d13a374aa01c5bcacef29bd41210f71c5972244689dc2873b4292504b76d5 |
|
MD5 | 95bc59369b0eb3087ac830aada26c25d |
|
BLAKE2b-256 | b4d6e088e4bc71d8973b63d54218d01d854df763b20887654e0f6bc82e0f12ac |