# Send different parameters to an Easy Chart

**URL:** <https://forum.inductiveautomation.com/t/send-different-parameters-to-an-easy-chart/21007>\
**Category:** Ignition\
**Created:** [November 21, 2018, 9:22pm UTC](https://forum.inductiveautomation.com/t/send-different-parameters-to-an-easy-chart/21007 "2018-11-21T21:22:26Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [November 21, 2018, 9:42pm UTC](https://forum.inductiveautomation.com/t/send-different-parameters-to-an-easy-chart/21007/3 "2018-11-21T21:42:48Z")

</div>

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:

```auto
ec = event.source.parent.getComponent("Easy Chart")
ec.axes = event.source.axes
ec.pens = event.source.pens
ec.tagPens = event.source.tagPens
ec.calcPens = event.source.calcPens

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/send-different-parameters-to-an-easy-chart/21007)._
