# Perspective Power Chart aggregatemode DurationOn in Hours

**URL:** <https://forum.inductiveautomation.com/t/perspective-power-chart-aggregatemode-durationon-in-hours/82362>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [November 26, 2023, 7:44pm UTC](https://forum.inductiveautomation.com/t/perspective-power-chart-aggregatemode-durationon-in-hours/82362 "2023-11-26T19:44:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jose\_Quintero](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jose_quintero/32/38120_2.png) [@Jose\_Quintero](https://forum.inductiveautomation.com/u/Jose_Quintero)\
**Post date:** [November 26, 2023, 7:44pm UTC](https://forum.inductiveautomation.com/t/perspective-power-chart-aggregatemode-durationon-in-hours/82362/1 "2023-11-26T19:44:05Z")

</div>

Hello everyone, I have a question with the powerchart component that I hope you can help me with.

I have a template developed in perspective with a powerchart and it is linked with a udt, but I want to change the time from seconds to hours in the DurationOn aggregation mode, has anyone done this?

![Captura](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/9/a90a4d947215d507dcd758dda9407253db23119f.jpeg)

---

<div class="post-metadata">

**Author:** ![Dechen\_Chuteng](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@Dechen\_Chuteng](https://forum.inductiveautomation.com/u/Dechen_Chuteng)\
**Post date:** [December 22, 2023, 12:41am UTC](https://forum.inductiveautomation.com/t/perspective-power-chart-aggregatemode-durationon-in-hours/82362/2 "2023-12-22T00:41:19Z")

</div>

Hello @Jose_Quintero,

Are you trying to change the value's format of the aggregation mode that's displayed on the PowerChart and the PowerChart Pen Control?

I just tested this on my end and I was not able to transform the data's format that's displayed due to PowerChart's limitations. The PowerChart does not give us a dataset or is exposed for us to manipulate.

I would suggest implementing this in a [XY Chart](https://docs.inductiveautomation.com/display/DOC81/Perspective+-+XY+Chart) where you can do a [Tag History](https://docs.inductiveautomation.com/display/DOC81/Tag+History+Bindings+in+Perspective) binding on the `dataSources` property. This binding has the option to select aggregation mode as well. To do the conversion from seconds to hours, you can then add a Script Transform.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/e/4e60e35ece6d88588b5b58c85c5e970a27c8ee5e.png)
