# Power Chart - Is it possible to replace the data/source with a tag history binding?

**URL:** <https://forum.inductiveautomation.com/t/power-chart-is-it-possible-to-replace-the-data-source-with-a-tag-history-binding/52634>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [November 2, 2021, 5:08pm UTC](https://forum.inductiveautomation.com/t/power-chart-is-it-possible-to-replace-the-data-source-with-a-tag-history-binding/52634 "2021-11-02T17:08:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [November 2, 2021, 5:08pm UTC](https://forum.inductiveautomation.com/t/power-chart-is-it-possible-to-replace-the-data-source-with-a-tag-history-binding/52634/1 "2021-11-02T17:08:01Z")

</div>

How do I manipulate or transform tag history data in a Power Chart?

![Power Chart data source](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/0/00a0b83e143196ac2c621222263892fb1c686556.png)

_Figure 1. How can I feed this with a tag history binding so that I can run a transform on the data?_

Thanks!

* * *

Background:  
I'm logging non-resetting machine cycle counters and want to present a graph that starts at y = 0 no matter what start date is selected. My idea is to subtract the start count value from every record in the dataset. I can't figure out a way to do it.

* * *

In this related question the OP has figured out how to use a custom method but hasn't explained how to trigger the method:

> [@Perspective PowerChart Pens Dataset - Solved](https://forum.inductiveautomation.com/t/perspective-powerchart-pens-dataset-solved/48850):
>
> I have been attempting to migrate from Vision Easy Charts to Perspective Power Chart. I loaded the pen data to my smart chart via a named query. I have been trying to recreate the same with a Power Chart. I have the Pens bound to a dataset and corrected most of the column names, but the tag path is proving difficult. The Perspective Smart Chart Pens have data as an object with the source and aggregateMode as properties. Is there a column name or SQL trick I can perform to set these values from …

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [November 8, 2021, 12:07pm UTC](https://forum.inductiveautomation.com/t/power-chart-is-it-possible-to-replace-the-data-source-with-a-tag-history-binding/52634/2 "2021-11-08T12:07:40Z")

</div>

In the methode he is refering to the table as getChild so im guessing this is just triggered in a startup script on the root component or a binding in the root to the his query tag self.custom.TrendGroupPenData

---

<div class="post-metadata">

**Author:** ![drojas](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drojas/32/3403_2.png) [@drojas](https://forum.inductiveautomation.com/u/drojas)\
**Post date:** [December 4, 2021, 4:12pm UTC](https://forum.inductiveautomation.com/t/power-chart-is-it-possible-to-replace-the-data-source-with-a-tag-history-binding/52634/3 "2021-12-04T16:12:45Z")

</div>

I don’t think you can. The Power Chart is abstracted to just provide a tag path and it handles the rest. If you need to manipulate history data, you’ll have to use one of the other charts where you have to do the heavy lifting of providing data…not just a tag path.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [December 4, 2021, 4:16pm UTC](https://forum.inductiveautomation.com/t/power-chart-is-it-possible-to-replace-the-data-source-with-a-tag-history-binding/52634/4 "2021-12-04T16:16:02Z")

</div>

Thanks, @drajas. I have come to the same conclusion. I used an XY Chart but had to create a date select widget to go with it. I might post the widget on the Exchange.

---

<div class="post-metadata">

**Author:** ![drojas](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drojas/32/3403_2.png) [@drojas](https://forum.inductiveautomation.com/u/drojas)\
**Post date:** [December 4, 2021, 4:19pm UTC](https://forum.inductiveautomation.com/t/power-chart-is-it-possible-to-replace-the-data-source-with-a-tag-history-binding/52634/5 "2021-12-04T16:19:26Z")

</div>

Please do. I had to create one too that I am not proud of to post on the Exchange. Ideally if it could replicate the same UI/functionality as the one built-in to the Power Chart, that would be great. That one is minimalistic for mobile use.
