# Power Chart persistent pen configuration

**URL:** <https://forum.inductiveautomation.com/t/power-chart-persistent-pen-configuration/75336>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [June 21, 2023, 1:21pm UTC](https://forum.inductiveautomation.com/t/power-chart-persistent-pen-configuration/75336 "2023-06-21T13:21:02Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bharat\_Vinchwekar](https://avatars.discourse-cdn.com/v4/letter/b/13edae/32.png) [@Bharat\_Vinchwekar](https://forum.inductiveautomation.com/u/Bharat_Vinchwekar)\
**Post date:** [June 21, 2023, 1:21pm UTC](https://forum.inductiveautomation.com/t/power-chart-persistent-pen-configuration/75336/1 "2023-06-21T13:21:02Z")

</div>

Hello Everyone,

Currently I am using trends on respective machine dashboard, but when I. Navigate from one to on other and come back to previous again the seleyec pens gets deleted so can anyone suggest what can be setting which I am doing wrongly..

Regards,

Bharat Vinchwekar

---

<div class="post-metadata">

**Author:** ![djs](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@djs](https://forum.inductiveautomation.com/u/djs)\
**Post date:** [June 21, 2023, 1:46pm UTC](https://forum.inductiveautomation.com/t/power-chart-persistent-pen-configuration/75336/2 "2023-06-21T13:46:38Z")

</div>

Is this in perspective or vision?

---

<div class="post-metadata">

**Author:** ![Bharat\_Vinchwekar](https://avatars.discourse-cdn.com/v4/letter/b/13edae/32.png) [@Bharat\_Vinchwekar](https://forum.inductiveautomation.com/u/Bharat_Vinchwekar)\
**Post date:** [June 21, 2023, 3:20pm UTC](https://forum.inductiveautomation.com/t/power-chart-persistent-pen-configuration/75336/3 "2023-06-21T15:20:43Z")

</div>

Perspective

---

<div class="post-metadata">

**Author:** ![djs](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@djs](https://forum.inductiveautomation.com/u/djs)\
**Post date:** [June 21, 2023, 4:04pm UTC](https://forum.inductiveautomation.com/t/power-chart-persistent-pen-configuration/75336/4 "2023-06-21T16:04:37Z")

</div>

The power chart doesn't keep the pens that were added during runtime once you close that view. There are ways to keep the pen configuration, but they are not built in. Check out this topic:

> [@Perspective PowerChart: how to set default aggregate mode & save user configuration](https://forum.inductiveautomation.com/t/perspective-powerchart-how-to-set-default-aggregate-mode-save-user-configuration/72513/4):
>
> For your second question, maybe you could do something with this resource: If you want your chart config to persist per user across sessions and logins, you'll have to save that config somehow. This resource lets you save trend configs to a database and load them up again. If you modify it a little, you might be able to automatically save the current config on a view's onShutdown and automatically load it on the chart's onStartup etc.

If you want a set of pens to always be there every time for all users, you could add the pens in the designer preview and save the view. Then, every time that view is open, the power chart will start off with those pens.

---

<div class="post-metadata">

**Author:** ![Bharat\_Vinchwekar](https://avatars.discourse-cdn.com/v4/letter/b/13edae/32.png) [@Bharat\_Vinchwekar](https://forum.inductiveautomation.com/u/Bharat_Vinchwekar)\
**Post date:** [June 21, 2023, 5:41pm UTC](https://forum.inductiveautomation.com/t/power-chart-persistent-pen-configuration/75336/5 "2023-06-21T17:41:24Z")

</div>

Just making it to understand your solution, are you mean that I should save the pens in designer view & then open them in session will keep the pens intact every time opening?

Regards,  
Bharat Vinchwekar

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [June 21, 2023, 5:44pm UTC](https://forum.inductiveautomation.com/t/power-chart-persistent-pen-configuration/75336/6 "2023-06-21T17:44:07Z")

</div>

> [@Bharat\_Vinchwekar](#):
>
> then open them in session will keep the pens intact every time opening?

The pens will reset to what you selected and then saved in the designer. If you want to save the users selections then you will need to develop a way to store those and reload them upon returning to the view.

---

<div class="post-metadata">

**Author:** ![Bharat\_Vinchwekar](https://avatars.discourse-cdn.com/v4/letter/b/13edae/32.png) [@Bharat\_Vinchwekar](https://forum.inductiveautomation.com/u/Bharat_Vinchwekar)\
**Post date:** [June 21, 2023, 6:25pm UTC](https://forum.inductiveautomation.com/t/power-chart-persistent-pen-configuration/75336/7 "2023-06-21T18:25:56Z")

</div>

Thank You Daniel & Irose for the solution,

One last question, if you could help me with the same I am struggling to set the time X-axis (Time Axis) for 2 - 3 hrs instead of for a less than-minute view in the single view of the chart. Dont, know what mistake I am making too.

Below is the image of the chart I had in which I wanted to have the big time range in X-Axis.

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

Thanks & Regards,  
Bharat Vinchwekar

---

<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:** [June 21, 2023, 6:41pm UTC](https://forum.inductiveautomation.com/t/power-chart-persistent-pen-configuration/75336/8 "2023-06-21T18:41:24Z")

</div>

![Last five minutes](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/e/6eca9b05e3ad5b2b90e48b21966a5f670e03663f.png)

---

<div class="post-metadata">

**Author:** ![Bharat\_Vinchwekar](https://avatars.discourse-cdn.com/v4/letter/b/13edae/32.png) [@Bharat\_Vinchwekar](https://forum.inductiveautomation.com/u/Bharat_Vinchwekar)\
**Post date:** [June 21, 2023, 6:49pm UTC](https://forum.inductiveautomation.com/t/power-chart-persistent-pen-configuration/75336/9 "2023-06-21T18:49:23Z")

</div>

Hi,

Tried that too but not woking for the requirement.

---

<div class="post-metadata">

**Author:** ![Bharat\_Vinchwekar](https://avatars.discourse-cdn.com/v4/letter/b/13edae/32.png) [@Bharat\_Vinchwekar](https://forum.inductiveautomation.com/u/Bharat_Vinchwekar)\
**Post date:** [June 21, 2023, 7:12pm UTC](https://forum.inductiveautomation.com/t/power-chart-persistent-pen-configuration/75336/10 "2023-06-21T19:12:08Z")

</div>

Hurray it worked, Thanks, Buddy....

Regards,  
Bharat
