# 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:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrespumacayogomez](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@andrespumacayogomez](https://forum.inductiveautomation.com/u/andrespumacayogomez)\
**Post date:** [October 23, 2019, 5:11pm UTC](https://forum.inductiveautomation.com/t/easy-chart-button-pen-color/29324/1 "2019-10-23T17:11:23Z")

</div>

Hello everyboy,

I am using two bottons, one for my analog tags and another for my digital tags, these bottons are configured to show and separate analog and digital signal in two subplot. The problem with the tag colors in the easy chart. When i drag a tag into the botton (analog or digital) the color of tags not changed and when i drag into the easy chart pens the colors changed. I don’t know what made to changed) any color of tags when i drag those into the bottons. I leave a reference picture.

Thanks all.  
Andres  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/8/85bbb3ebdd9af4b872fb04204a3faac6e5615344.png)

---

<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…
