# Easy chart button pen color

**URL:** <https://forum.inductiveautomation.com/t/easy-chart-button-pen-color/29324>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [October 23, 2019, 5:11pm UTC](https://forum.inductiveautomation.com/t/easy-chart-button-pen-color/29324 "2019-10-23T17:11:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [October 23, 2019, 6:23pm UTC](https://forum.inductiveautomation.com/t/easy-chart-button-pen-color/29324/2 "2019-10-23T18:23:23Z")

</div>

If I understand correctly, you have code in the analog and digital buttons that adds tags dropped onto them into the Easy Chart. You'll want to add something to that code to set pen colors. See this post for an example:

> [@Ad-hoc trending - drop on button press?](http://forum.inductiveautomation.com/t/ad-hoc-trending-drop-on-button-press/15088/4):
>
> I think I’ve got a solution. I needed a way to mimic dragging and dropping on a touch screen that was incapable of doing so. So instead of over-complicating it, I just used a button to put the selected item in the tag browse tree into the easy chart. It uses Ignition’s addPen custom method from their demo project but I adjusted it slightly to work for us. So, you will need three components on screen - Tag Browse Tree, Easy Chart and a Button. Your Tag Browse Tree will need an added custom pro…

---

_[View the full topic](https://forum.inductiveautomation.com/t/easy-chart-button-pen-color/29324)._
