diff --git a/docs/iframes/bug.html b/docs/iframes/bug.html index 17ebd32..2b695c7 100644 --- a/docs/iframes/bug.html +++ b/docs/iframes/bug.html @@ -61,11 +61,11 @@ - 2026-03-27T15:17:26.650954 + 2026-05-17T14:16:29.135002 image/svg+xml - Matplotlib v3.10.3, https://matplotlib.org/ + Matplotlib v3.10.8, https://matplotlib.org/ diff --git a/docs/iframes/quickstart.html b/docs/iframes/quickstart.html index df4dff6..2ff6ccf 100644 --- a/docs/iframes/quickstart.html +++ b/docs/iframes/quickstart.html @@ -61,11 +61,11 @@ - 2026-03-27T15:17:24.471069 + 2026-05-17T14:16:26.797582 image/svg+xml - Matplotlib v3.10.3, https://matplotlib.org/ + Matplotlib v3.10.8, https://matplotlib.org/ diff --git a/docs/iframes/quickstart10.html b/docs/iframes/quickstart10.html index 681f279..7e77118 100644 --- a/docs/iframes/quickstart10.html +++ b/docs/iframes/quickstart10.html @@ -61,11 +61,11 @@ - 2026-03-27T15:17:26.308079 + 2026-05-17T14:16:28.804269 image/svg+xml - Matplotlib v3.10.3, https://matplotlib.org/ + Matplotlib v3.10.8, https://matplotlib.org/ diff --git a/docs/iframes/quickstart11.html b/docs/iframes/quickstart11.html index e4f66e8..3b0c85e 100644 --- a/docs/iframes/quickstart11.html +++ b/docs/iframes/quickstart11.html @@ -61,11 +61,11 @@ - 2026-03-27T15:17:26.438056 + 2026-05-17T14:16:28.928415 image/svg+xml - Matplotlib v3.10.3, https://matplotlib.org/ + Matplotlib v3.10.8, https://matplotlib.org/ diff --git a/docs/iframes/quickstart12.html b/docs/iframes/quickstart12.html index 7da1449..ef8c27f 100644 --- a/docs/iframes/quickstart12.html +++ b/docs/iframes/quickstart12.html @@ -61,11 +61,11 @@ - 2026-03-27T15:17:24.795041 + 2026-05-17T14:16:27.100925 image/svg+xml - Matplotlib v3.10.3, https://matplotlib.org/ + Matplotlib v3.10.8, https://matplotlib.org/ diff --git a/docs/iframes/quickstart13.html b/docs/iframes/quickstart13.html index 2c690ae..3d9ffbb 100644 --- a/docs/iframes/quickstart13.html +++ b/docs/iframes/quickstart13.html @@ -61,11 +61,11 @@ - 2026-03-27T15:17:25.559529 + 2026-05-17T14:16:28.101492 image/svg+xml - Matplotlib v3.10.3, https://matplotlib.org/ + Matplotlib v3.10.8, https://matplotlib.org/ diff --git a/docs/iframes/quickstart2.html b/docs/iframes/quickstart2.html index 52a21a1..5c30807 100644 --- a/docs/iframes/quickstart2.html +++ b/docs/iframes/quickstart2.html @@ -3,98 +3,124 @@ Made with plotjs - + - -
- - - - - - - 2026-03-27T15:17:24.494966 - image/svg+xml - - - Matplotlib v3.10.3, https://matplotlib.org/ - - - - - - - - - - - + + + + + + 2026-05-17T14:16:26.822276 + image/svg+xml + + + Matplotlib v3.10.8, https://matplotlib.org/ + + + + + + + + + + + - - - - + + + + - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - + - + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + - - - + + + - - - + + + - - - - - - - - - - -
+" + style=" + fill: none; + stroke: #000000; + stroke-width: 0.8; + stroke-linejoin: miter; + stroke-linecap: square; + " + /> + + + + + + + + + + +
diff --git a/docs/iframes/quickstart3.html b/docs/iframes/quickstart3.html index 0cda1d2..73e9038 100644 --- a/docs/iframes/quickstart3.html +++ b/docs/iframes/quickstart3.html @@ -61,11 +61,11 @@ - 2026-03-27T15:17:24.515804 + 2026-05-17T14:16:26.843194 image/svg+xml - Matplotlib v3.10.3, https://matplotlib.org/ + Matplotlib v3.10.8, https://matplotlib.org/ diff --git a/docs/iframes/quickstart4.html b/docs/iframes/quickstart4.html index e60076b..670719b 100644 --- a/docs/iframes/quickstart4.html +++ b/docs/iframes/quickstart4.html @@ -61,11 +61,11 @@ - 2026-03-27T15:17:24.542468 + 2026-05-17T14:16:26.870546 image/svg+xml - Matplotlib v3.10.3, https://matplotlib.org/ + Matplotlib v3.10.8, https://matplotlib.org/ diff --git a/docs/iframes/quickstart5.html b/docs/iframes/quickstart5.html index 4ed581c..2325b5b 100644 --- a/docs/iframes/quickstart5.html +++ b/docs/iframes/quickstart5.html @@ -61,11 +61,11 @@ - 2026-03-27T15:17:24.568853 + 2026-05-17T14:16:26.896677 image/svg+xml - Matplotlib v3.10.3, https://matplotlib.org/ + Matplotlib v3.10.8, https://matplotlib.org/ diff --git a/docs/iframes/quickstart6.html b/docs/iframes/quickstart6.html index 31e257c..975e627 100644 --- a/docs/iframes/quickstart6.html +++ b/docs/iframes/quickstart6.html @@ -61,11 +61,11 @@ - 2026-03-27T15:17:24.716534 + 2026-05-17T14:16:27.029036 image/svg+xml - Matplotlib v3.10.3, https://matplotlib.org/ + Matplotlib v3.10.8, https://matplotlib.org/ diff --git a/docs/iframes/quickstart7.html b/docs/iframes/quickstart7.html index 4243919..8866937 100644 --- a/docs/iframes/quickstart7.html +++ b/docs/iframes/quickstart7.html @@ -61,11 +61,11 @@ - 2026-03-27T15:17:25.791413 + 2026-05-17T14:16:28.318538 image/svg+xml - Matplotlib v3.10.3, https://matplotlib.org/ + Matplotlib v3.10.8, https://matplotlib.org/ diff --git a/docs/iframes/quickstart8.html b/docs/iframes/quickstart8.html index c797bb3..964d4f9 100644 --- a/docs/iframes/quickstart8.html +++ b/docs/iframes/quickstart8.html @@ -61,11 +61,11 @@ - 2026-03-27T15:17:25.941743 + 2026-05-17T14:16:28.458677 image/svg+xml - Matplotlib v3.10.3, https://matplotlib.org/ + Matplotlib v3.10.8, https://matplotlib.org/ diff --git a/docs/iframes/quickstart9.html b/docs/iframes/quickstart9.html index 27997ae..a1eb553 100644 --- a/docs/iframes/quickstart9.html +++ b/docs/iframes/quickstart9.html @@ -61,11 +61,11 @@ - 2026-03-27T15:17:26.099517 + 2026-05-17T14:16:28.606158 image/svg+xml - Matplotlib v3.10.3, https://matplotlib.org/ + Matplotlib v3.10.8, https://matplotlib.org/ diff --git a/docs/index.md b/docs/index.md index 8a6fbc4..3d75ee0 100644 --- a/docs/index.md +++ b/docs/index.md @@ -17,23 +17,10 @@ interactive charts with minimum user inputs. You can: ## Installation -- From PyPI (recommended): - ``` bash pip install plotjs ``` -- Latest dev version: - -``` bash -pip install git+https://github.com/y-sunflower/plotjs.git -``` - -- Python 3.10+ -- [matplotlib](https://matplotlib.org/), - [jinja2](https://jinja.palletsprojects.com/en/stable/) and - [narwhals](https://narwhals-dev.github.io/narwhals/) - ## Get started Matplotlib is **great**[^1]: you can draw anything with it. @@ -298,7 +285,9 @@ sns.despine() ( PlotJS(bbox_inches="tight") - .add_tooltip(labels=planets["method"].unique(), on="bar", hover_nearest=True) + .add_tooltip( + labels=planets["method"].unique().tolist(), on="bar", hover_nearest=True + ) .save("iframes/quickstart13.html") ) ``` diff --git a/docs/index.qmd b/docs/index.qmd index 528ce81..67d43a3 100644 --- a/docs/index.qmd +++ b/docs/index.qmd @@ -31,21 +31,10 @@ np.random.seed(0) ## Installation -- From PyPI (recommended): - ```bash pip install plotjs ``` -- Latest dev version: - -```bash -pip install git+https://github.com/y-sunflower/plotjs.git -``` - -- Python 3.10+ -- [matplotlib](https://matplotlib.org/), [jinja2](https://jinja.palletsprojects.com/en/stable/) and [narwhals](https://narwhals-dev.github.io/narwhals/) - ## Get started Matplotlib is **great**[^1]: you can draw anything with it. @@ -282,7 +271,9 @@ sns.despine() ( PlotJS(bbox_inches="tight") - .add_tooltip(labels=planets["method"].unique(), on="bar", hover_nearest=True) + .add_tooltip( + labels=planets["method"].unique().tolist(), on="bar", hover_nearest=True + ) .save("iframes/quickstart13.html") ) ``` diff --git a/docs/index_files/figure-commonmark/cell-3-output-1.png b/docs/index_files/figure-commonmark/cell-3-output-1.png index f7534cb..e05eef7 100644 Binary files a/docs/index_files/figure-commonmark/cell-3-output-1.png and b/docs/index_files/figure-commonmark/cell-3-output-1.png differ