# Interactive SVG using \<object\>?

**URL:** <https://meta.discourse.org/t/interactive-svg-using-object/173747>\
**Category:** Self-hosting\
**Created:** [December 18, 2020, 5:25pm UTC](https://meta.discourse.org/t/interactive-svg-using-object/173747 "2020-12-18T17:25:01Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![craigconstantine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/craigconstantine/32/511195_2.png) [@craigconstantine](https://meta.discourse.org/u/craigconstantine)\
**Post date:** [December 18, 2020, 5:25pm UTC](https://meta.discourse.org/t/interactive-svg-using-object/173747/1 "2020-12-18T17:25:01Z")

</div>

I’m trying to embed an interactive, SVG-based, data visualization. I’m generating SVG from a separate system, (but still in the same second-level domain as my Discourse installation.) I’ve tried bringing the SVG in using an OBJECT tag…

```
<object type="image/svg+xml" data="full_URL_to_foo.svg">
(appears if object load fails)
</object>

```

If I simply bring that SVG (it’s dynamically generated each time) in with an IMG tag, the visual appears, but (as I expected) there’s no interactivity…

```
<img src="full_URL_to_foo.svg">

```

Thoughts or pointers where I can buy some clues re SVGs and Discourse? 🙂

---

_[View the full topic](https://meta.discourse.org/t/interactive-svg-using-object/173747)._
