# Preload pens on button parameters - Vision Ad Hoc Trend Chart

**URL:** <https://forum.inductiveautomation.com/t/preload-pens-on-button-parameters-vision-ad-hoc-trend-chart/58563>\
**Category:** Ignition Exchange\
**Created:** [April 18, 2022, 6:11pm UTC](https://forum.inductiveautomation.com/t/preload-pens-on-button-parameters-vision-ad-hoc-trend-chart/58563 "2022-04-18T18:11:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 18, 2022, 7:12pm UTC](https://forum.inductiveautomation.com/t/preload-pens-on-button-parameters-vision-ad-hoc-trend-chart/58563/2 "2022-04-18T19:12:38Z")

</div>

Vision? If your trend is a popup window, try this:

> [@Indirect Tag in Easy Chart in a Popup](https://forum.inductiveautomation.com/t/indirect-tag-in-easy-chart-in-a-popup/17485/4):
>
> Even better would be to create a dataset property for tagPens in the root container of your popup window, and uni-directionally bind the easychart’s tagPens to it. Then you can pass in a tagPens dataset with your openWindow() call with any desired number of pens to display.

If your trend is in the same window with the buttons, try this:

> [@Send different parameters to an Easy Chart](https://forum.inductiveautomation.com/t/send-different-parameters-to-an-easy-chart/21007/3):
>
> Yes. The simplest way would be to create custom dataset properties on each button with the same names as the configuration properties on the EasyChart (pens, tagPens, axes…). Then in the button’s actionPerformed event, copy the datasets from the button to the chart. Set the datasets up by copy/paste in each property’s dataset editor. (Set the chart the way you want, then copy its config datasets to the corresponding button.) The actionPerformed events would look something like this: ec = e…

With Perspective, you'll want to perform a similar assignment, possibly with a script transform.

---

_[View the full topic](https://forum.inductiveautomation.com/t/preload-pens-on-button-parameters-vision-ad-hoc-trend-chart/58563)._
