mycontroller-org / mycontroller-v1-legacy

The Open Source Controller
http://www.MyController.org
Apache License 2.0
148 stars 89 forks source link

Request: Make all graph x-axis a consistent range [current time - (hour,day,week...), current time] #471

Open jkandasa opened 6 years ago

jkandasa commented 6 years ago

Source: https://forum.mycontroller.org/topic/354/request-make-all-graph-x-axis-a-consistent-range-current-time-hour-day-week-current-time

Originally reported by @nikolac

Problem

I have a chart that shows triggers (motion sensors, doors) in the "last 12 hours" . Every time I look at the chart, I have to look at the first and last point on the chart to determine how big of a window I'm looking at.

Right now, it appears the x-axis range on the the default graphs is [time of earliest datapoint in last (hour, day, week...), time of most recent data point in last (hour, day...)].

For example, I look at the chart at 10:00. There are two events on the graph: a motion event at 5:00 and a motion event at 5:10. The width of the graph represents 10 minutes.

The next day, I look at the chart at 10:00. There are two events on the graph: a motion event at 1:00, and a motion event at 9:30. In this instance, the width of the graph represents 8.5 hours.

Request

I believe a range [current time - (hour, day...year), current time], independent of the data within the range, would provide a more consistent experience. Also a more representative visualization.