# Combining plot & d3js

**URL:** https://talk.observablehq.com/t/combining-plot-d3js/7292
**Category:** Help
**Created:** [November 17, 2022, 7:36am UTC](https://talk.observablehq.com/t/combining-plot-d3js/7292 "2022-11-17T07:36:56Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![neocarto](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/neocarto/32/6554_2.png) [@neocarto](https://talk.observablehq.com/u/neocarto)
#### Post date: [November 17, 2022, 7:36am UTC](https://talk.observablehq.com/t/combining-plot-d3js/7292/1 "2022-11-17T07:36:56Z")

</div>

Is there a way to insert a chart made with observable plot inside an svg document containing other elements ?

---

<div class="post-metadata">

### Author: ![Fil](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/fil/32/207_2.png) [@Fil](https://talk.observablehq.com/u/Fil)
#### Post date: [November 17, 2022, 7:47am UTC](https://talk.observablehq.com/t/combining-plot-d3js/7292/2 "2022-11-17T07:47:31Z")

</div>

You can use [Element.append](https://developer.mozilla.org/en-US/docs/Web/API/Element/append), or D3. There are a few examples in [Observable Plot: zoom / Observable / Observable](https://observablehq.com/@observablehq/plot-zoom)

---

<div class="post-metadata">

### Author: ![neocarto](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/neocarto/32/6554_2.png) [@neocarto](https://talk.observablehq.com/u/neocarto)
#### Post date: [November 17, 2022, 8:11am UTC](https://talk.observablehq.com/t/combining-plot-d3js/7292/3 "2022-11-17T08:11:14Z")

</div>

Thanks 🙂

> **[Combine bertin with plot and d3js](https://observablehq.com/@neocartocnrs/combine-bertin-with-plot-and-d3js?collection=@neocartocnrs%2Fbertin)**
>
> Since the version \`bertin@1.5\`, it is now possible to add your own layer types, thanks to the \`custom\` (or \`function\`) type. Thanks to @saneef for this brilliant idea. Find some examples of application below. 1. Add a rectangle In this first simple...
