# Creating a default state for screen

**URL:** <https://forum.inductiveautomation.com/t/creating-a-default-state-for-screen/17091>\
**Category:** Ignition\
**Tags:** ignition79, scripting\
**Created:** [February 22, 2018, 3:47pm UTC](https://forum.inductiveautomation.com/t/creating-a-default-state-for-screen/17091 "2018-02-22T15:47:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![bfuson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bfuson/32/4597_2.png) [@bfuson](https://forum.inductiveautomation.com/u/bfuson)\
**Post date:** [February 22, 2018, 3:59pm UTC](https://forum.inductiveautomation.com/t/creating-a-default-state-for-screen/17091/2 "2018-02-22T15:59:42Z")

</div>

To set the tags in the Easy Chart back to their default value, you can simply reassign the tagPens property in a script. That means you’ll need to define the tagPens dataset with the expected format. Take a look at [this] ([Can't set pen attributes for Easy Chart template](http://forum.inductiveautomation.com/t/cant-set-pen-attributes-for-easy-chart-template/17063?u=bfuson)) post where another user is setting tag pens via scripting.  
You can do something similar to the Date Range component by setting the startDate and endDate properties in a script.

---

_[View the full topic](https://forum.inductiveautomation.com/t/creating-a-default-state-for-screen/17091)._
