Limiting the date selection on power chart - perspective

Is there a way to limit the date range in power chart, I want the maximum to be set for last last 7 days. If the user tries to select anything more than 7 days, chart should reset to last 7 days. I tried writing to rangeStartDate and it's not working.

rangeStartDate is a read only property. You'll need to write to startDate if you are running the chart in historical mode.

Yes, got it. I need to limit it in real-time mode too.

For real time mode you'll need to adjust unitOfTime to be 7 days in whatever unit is currently selected. (168 Hours, 10080 Minutes, etc). Which properties are used for what mode is mentioned in that link I posted previously.

1 Like