Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 827 Bytes

README.md

File metadata and controls

23 lines (14 loc) · 827 Bytes

htmx-plotly-bidirection

Bidirectional communication between Plotly and HTMX.

  • HTMX controls can update Plotly charts on the page.
  • Plotly events can trigger HTMX updates (either on the page or the plot itself).

Install

We assume you have correctly installed both HTMX and Plotly on your page.

To use our CDN (a passthrough to the latest version on github):

<script src="https://cdn.jsdelivr.net/gh/y2kbugger/htmx-plotly-bidirectional@master/static/htmx-plotly-bidirectional.js" crossorigin="anonymous"></script>

Examples

Please see templates/index.html for a full the front-end usage.

Find the back-end FastApi example in server.py