# Share Canvas on website

**URL:** <https://discuss.elastic.co/t/share-canvas-on-website/301208>\
**Category:** Kibana\
**Tags:** canvas\
**Created:** [March 31, 2022, 2:16pm UTC](https://discuss.elastic.co/t/share-canvas-on-website/301208 "2022-03-31T14:16:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexM566](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexm566/32/89480_2.png) [@AlexM566](https://discuss.elastic.co/u/AlexM566)\
**Post date:** [March 31, 2022, 2:16pm UTC](https://discuss.elastic.co/t/share-canvas-on-website/301208/1 "2022-03-31T14:16:23Z")

</div>

Hello everyone,

I have a problem, I want to share my canvas on the website, but I have a problem, the canvas is not shared on the website. I followed the instructions given in the documentation, but no success. This is my code and the errors encountered:

```auto
<!DOCTYPE html>
<html>
<body>
<!-- Include Runtime -->
<script src="kbn_canvas.js"></script>

<div kbn-canvas-shareable="canvas" kbn-canvas-url="canvas.json">
</div>

<script type="text/javascript">
        KbnCanvas.share();
</script>

</body>
</html>

```

And this is the error in Chrome DevTools:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/9/49e32bec9fa191b977d0627c46bdbcb71920a038.png)

What is the mistake and not working?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 28, 2022, 2:16pm UTC](https://discuss.elastic.co/t/share-canvas-on-website/301208/2 "2022-04-28T14:16:51Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
