# plot line mark to separate stacked areas

**URL:** <https://talk.observablehq.com/t/plot-line-mark-to-separate-stacked-areas/8163>\
**Category:** Help\
**Created:** [August 9, 2023, 9:17am UTC](https://talk.observablehq.com/t/plot-line-mark-to-separate-stacked-areas/8163 "2023-08-09T09:17:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jchrist](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@jchrist](https://talk.observablehq.com/u/jchrist)\
**Post date:** [August 9, 2023, 9:17am UTC](https://talk.observablehq.com/t/plot-line-mark-to-separate-stacked-areas/8163/1 "2023-08-09T09:17:54Z")

</div>

I want to add borders to an area mark but the line mark I added does not fit with the area mark: [Carbon Emissions / RND | Observable](https://observablehq.com/@rnd/carbon-emissions-forum)

---

<div class="post-metadata">

**Author:** ![mcmcclur](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mcmcclur/32/2364_2.png) [@mcmcclur](https://talk.observablehq.com/u/mcmcclur)\
**Post date:** [August 9, 2023, 10:29am UTC](https://talk.observablehq.com/t/plot-line-mark-to-separate-stacked-areas/8163/2 "2023-08-09T10:29:09Z")

</div>

I don’t see a line that you’ve specified. If you used `Plot.line` by grouping the data you’ve got, then I wouldn’t expect it to fit since you’re area mark is going to aggregate that data. I think the easiest thing to do, though, is to just add a `stroke` channel to the area mark.

Also, you can simplify the creation of the text to use just one text mark that references an array containing all the text and placement information.

I’ve sent you [a suggestion](https://observablehq.com/compare/e924f20a3efc6190...9d80426e2ec5e21c) that implements both those changes.

---

<div class="post-metadata">

**Author:** ![jchrist](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@jchrist](https://talk.observablehq.com/u/jchrist)\
**Post date:** [August 9, 2023, 11:25am UTC](https://talk.observablehq.com/t/plot-line-mark-to-separate-stacked-areas/8163/3 "2023-08-09T11:25:49Z")

</div>

oh, sorry, I posted the wrong link. The line mark is from this one: [https://observablehq.com/d/e689816a818e4b52](https://observablehq.com/d/e689816a818e4b52)

Thank you, the stroke is the best solution. And thanks again for the hint with the text mark.
