#Confusing trend graph
1 messages · Page 1 of 1 (latest)
entity: sensor.atticventilation_power
name: Ventilationsaggregat
vertical: false
features:
- type: trend-graph
features_position: bottom```
Any thoughts guys? Some, but
not all, trend graphs exhibit the same behaviour.
I don't really have much experience but I also had something similair and I added this
detail: 2
Thanks Nick, I hadn't tried that but it seems that **detail: true ** is the default. the problem looks to be when the graph is starting from zero. Here are a couple of examples grabbed a couple of minutes apart. There is some work being done on getting the smoothing correct. Nearly there just the edge cases to sort.
I think frames are getting lost in the down sampling with long strings of identical Y values. Simply adding a test for equality and pushing the minimum value to the frame should stop the distortion. I don't have the test environment or enough experience with typescript the be muich more help, sorry.
I believe the weird curve is due to two things.
- The interval between changes in the data.
- The way it tries to smooth the lines out.
With some types of data (statistics) It treats a string of identical values as "0 change" in order to save on storage load. Which in some displays it shows up as if there is no new data.
So the long graceful curve 🔴 is because it takes the big gap of 'no new data' and ramps up from the last to the new data point 🟢 which is higher. Because the next data point 🔵 is lower, it curves up and over so it can be heading downwards towards the next point.
Then you have a series of ups and downs, 🟠 all of which have specific data which it plots as best it can.