# Displaying PowerTable Contents in Easy Chart

**URL:** <https://forum.inductiveautomation.com/t/displaying-powertable-contents-in-easy-chart/33451>\
**Category:** Ignition\
**Tags:** ignition80, database\
**Created:** [March 26, 2020, 4:57pm UTC](https://forum.inductiveautomation.com/t/displaying-powertable-contents-in-easy-chart/33451 "2020-03-26T16:57:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![BradA](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@BradA](https://forum.inductiveautomation.com/u/BradA)\
**Post date:** [March 26, 2020, 4:57pm UTC](https://forum.inductiveautomation.com/t/displaying-powertable-contents-in-easy-chart/33451/1 "2020-03-26T16:57:37Z")

</div>

I’d like to use the contents of this Power Table to drive the pens for the easy chart shown below (3 pens for Num1, Num2, and Num3 plotted against the date/time). Basically just plot whatever is shown on the Power Table. I would think there’s an easy solution here but I just haven’t had success at first glance. Thanks!

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/8/871ba9e076aefb057b9d2e1e990543bc3d8b1dda.png)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [March 26, 2020, 7:17pm UTC](https://forum.inductiveautomation.com/t/displaying-powertable-contents-in-easy-chart/33451/2 "2020-03-26T19:17:05Z")

</div>

Don’t use an easy chart. Use the ‘classic’ chart, and (if needed) wire it up to a date range slider yourself. The easy chart doesn’t support directly handing in data, so at best you’d end up running twice as many history queries as needed.

---

<div class="post-metadata">

**Author:** ![BradA](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@BradA](https://forum.inductiveautomation.com/u/BradA)\
**Post date:** [March 26, 2020, 7:29pm UTC](https://forum.inductiveautomation.com/t/displaying-powertable-contents-in-easy-chart/33451/3 "2020-03-26T19:29:12Z")

</div>

Thanks for verifying I can’t directly hand data to an Easy Chart. I’ve explored the ‘classic’ chart route as well…I migrated back to the Easy Chart to add some ‘Calculated’ pens to the mix for some additional calculations (for instance, plotting the average). Is it possible to hand a ‘classic’ chart some data, and also plot some calculated values (like the average) on the same chart?

I’ve also considered looking at storing the visible PowerTable data in a dataset tag…but I haven’t spent any time looking into the feasibility of something like that.

---

<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:** [March 26, 2020, 8:01pm UTC](https://forum.inductiveautomation.com/t/displaying-powertable-contents-in-easy-chart/33451/4 "2020-03-26T20:01:47Z")

</div>

You can just bind a data property of the classic chart to the data property of the power table. Then, in the configureChart method, add range markers:

> [@Setting up bound value on chart](http://forum.inductiveautomation.com/t/setting-up-bound-value-on-chart/17372/6):
>
> You can also add range markers. This example is from the configureChart extension method. def configureChart(self, chart): from org.jfree.chart.plot import ValueMarker from java.awt import Color, BasicStroke plot = chart.getPlot() stroke = BasicStroke(1.0) # Draws a horizontal red line through 12.4 plot.addRangeMarker(ValueMarker(12.4, Color.RED, stroke)) # Draws a horizontal blue line through 12.225 plot.addRangeMarker(ValueMarker(12.225, Color.BLUE, stroke)) EDIT: Changed t…

---

<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:** [March 26, 2020, 8:03pm UTC](https://forum.inductiveautomation.com/t/displaying-powertable-contents-in-easy-chart/33451/5 "2020-03-26T20:03:30Z")

</div>

You might also find the [view()](https://www.automation-pros.com/simaids/doc/expression.view.html) function of the (free) [Simulation Aids](https://inductiveautomation.com/moduleshowcase/module/automation-professionals-llc-simulation-aids) module useful. (:

---

<div class="post-metadata">

**Author:** ![BradA](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@BradA](https://forum.inductiveautomation.com/u/BradA)\
**Post date:** [March 27, 2020, 2:31pm UTC](https://forum.inductiveautomation.com/t/displaying-powertable-contents-in-easy-chart/33451/6 "2020-03-27T14:31:53Z")

</div>

Thank you pturmel, this is exactly what I needed to add to my chart configuration!
