# Fire a js function, when a graph is loaded (or changed)

**URL:** <https://community.plotly.com/t/fire-a-js-function-when-a-graph-is-loaded-or-changed/83185>\
**Category:** 📊 Plotly Python\
**Created:** [March 20, 2024, 12:22pm UTC](https://community.plotly.com/t/fire-a-js-function-when-a-graph-is-loaded-or-changed/83185 "2024-03-20T12:22:42Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![luggie](https://avatars.discourse-cdn.com/v4/letter/l/0ea827/32.png) [@luggie](https://community.plotly.com/u/luggie)\
**Post date:** [March 21, 2024, 2:54pm UTC](https://community.plotly.com/t/fire-a-js-function-when-a-graph-is-loaded-or-changed/83185/4 "2024-03-21T14:54:29Z")

</div>

don’t know if this belongs in py or js forum

([Resize \<g class legend\> after truncating legend text](https://community.plotly.com/t/resize-g-class-legend-after-truncating-legend-text/83228))

---

_[View the full topic](https://community.plotly.com/t/fire-a-js-function-when-a-graph-is-loaded-or-changed/83185)._
