# Custom legend as a table

**URL:** <https://community.plotly.com/t/custom-legend-as-a-table/79007>\
**Category:** 📊 Plotly Python\
**Created:** [October 4, 2023, 2:36pm UTC](https://community.plotly.com/t/custom-legend-as-a-table/79007 "2023-10-04T14:36:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rnd](https://avatars.discourse-cdn.com/v4/letter/r/f0a364/32.png) [@rnd](https://community.plotly.com/u/rnd)\
**Post date:** [October 4, 2023, 2:36pm UTC](https://community.plotly.com/t/custom-legend-as-a-table/79007/1 "2023-10-04T14:36:32Z")

</div>

Hi,

I’d like to create a custom legend, which I would like to be a table.  
First column of the table should contain a square with of a set color and fill (say blue, dashed), the second and third rows - custom text (say “column 2”, “column 3”).  
Is it possible?

Thank you.

---

<div class="post-metadata">

**Author:** ![rnd](https://avatars.discourse-cdn.com/v4/letter/r/f0a364/32.png) [@rnd](https://community.plotly.com/u/rnd)\
**Post date:** [October 10, 2023, 6:02pm UTC](https://community.plotly.com/t/custom-legend-as-a-table/79007/2 "2023-10-10T18:02:19Z")

</div>

Even if it’s not possible to use it as a legend, is it possible to make the table itself?
