reflex-plot
Seamlessly plot dataframes in Reflex just like you would do with Matplotlib.
You can import plot from reflex_plot to get a Rechart component.
import random
from typing import Literal
import pandas as pd
import reflex as rx
from reflex_plot import plot
def plot_data(kind: Literal["line", "area", "bar"]) -> rx.Component:
df = pd.DataFrame(
{
"category": list(range(20)),
"value": [random.randint(0, 1000) for _ in range(20)],
}
)
return plot(
df,
kind=kind,
x="category",
y="value",
grid=True,
tool_tip=True,
)
Pandas plotting backend
You can also set reflex_plot as the default backend for pandas and use DataFrame.plot as you would do with Matplotlib
pd.set_option("plotting.backend", "reflex_plot")
def plot_data(kind: Literal["line", "area", "bar"]) -> rx.Component:
df = pd.DataFrame(
{
"category": list(range(20)),
"value": [random.randint(0, 1000) for _ in range(20)],
}
)
return df.plot(
kind=kind,
x="category",
y="value",
grid=True,
tool_tip=True,
)
How to install
pip install reflex-plot
Charts type covered
- Line
- Area
- Bar
Metadata
Release files for reflex-plot 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| reflex_plot-0.1.0.tar.gz | 232.0 kB | Without provenance | Details for reflex_plot-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| reflex_plot-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for reflex_plot-0.1.0-py3-none-any.whl |
Total release size: 235.5 kB
Release files / reflex_plot-0.1.0.tar.gz
| Download URL | reflex_plot-0.1.0.tar.gz |
|---|---|
| Size | 232.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
35419e56f10098d4213b73cf8738095c477e124614c4ac3d0064085911405ed6
|
|
BLAKE2b-256 checksum How to use checksums |
c4d83ca6cb6b60a506ffa83252744469284390530b409156e96e2d09d002d6d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.4.20
|
Release files / reflex_plot-0.1.0-py3-none-any.whl
| Download URL | reflex_plot-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2acb16aaf2c42232fb837aba378c189d127f56ade5aad23abee22d0001820480
|
|
BLAKE2b-256 checksum How to use checksums |
d198a0d87b23267d6be2268874b0d80fa9bae036f929224bdd54913414b9ea2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.4.20
|
Security for reflex-plot 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.