# Add data attribute in Plot

**URL:** <https://talk.observablehq.com/t/add-data-attribute-in-plot/8453>\
**Category:** Help\
**Created:** [November 4, 2023, 11:51am UTC](https://talk.observablehq.com/t/add-data-attribute-in-plot/8453 "2023-11-04T11:51:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![darfilp](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@darfilp](https://talk.observablehq.com/u/darfilp)\
**Post date:** [November 4, 2023, 11:51am UTC](https://talk.observablehq.com/t/add-data-attribute-in-plot/8453/1 "2023-11-04T11:51:42Z")

</div>

In this example [Plot: Horizontal bar chart with a label / Observable | Observable](https://observablehq.com/@observablehq/plot-horizontal-bar-chart-with-label?intent=fork) I would like to add data attribute, not areaLabel/ariaDescription, to the text with the words “Apple”, Google", etc. How can I do this?

Help please

---

<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 4, 2023, 3:23pm UTC](https://talk.observablehq.com/t/add-data-attribute-in-plot/8453/2 "2023-11-04T15:23:49Z")

</div>

Data attributes are not natively supported at the moment (maybe it could be added as a feature request). It’s probably _possible_ to add them (if a bit difficult) using a [render transform](https://github.com/observablehq/plot/pull/1811) and custom channels.
