Metadata-Version: 2.1
Name: reflex-highchart
Version: 0.0.1
Summary: reflex-highcharts is a powerful component designed to integrate the popular charting library,
Author-email: Jitendra Mishra <jitendra29mishra@gmail.com>
License: Apache-2.0
Project-URL: Homepage, https://github.com/jmishra01/reflex-highchart
Keywords: reflex,reflex-custom-components,Highchart,Visualization,Python,SSR
Classifier: Development Status :: 4 - Beta
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: reflex>=0.4.2
Provides-Extra: dev
Requires-Dist: build; extra == "dev"
Requires-Dist: twine; extra == "dev"

# reflex-highchart

reflex-highcharts is a powerful component designed to integrate the popular charting library,
[Highcharts](https://www.highcharts.com), into your [Reflex](https://reflex.dev) web applications.
This integration allows you to create visually appealing and interactive charts with ease.

## Installation

```bash
pip install reflex-highchart
```

## Example

```python
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)
```
