Power Chart Date Range Selector

As of now, when you open the date range selector (for historical mode) on the power chart the default date is the one last selected in the designer, no matter the user. Is there anyway for it to default to today’s date? Seems to be a way to do this on Easy Chart, but not on the Power Chart.

You could configure a startup event on the component that runs a script that sets the start and end dates.

This would set the end date to the current time and the start date to 1 hour prior.

self.props.config.startDate = system.date.addHours(system.date.now(),-1)
self.props.config.endDate = system.date.now()