LowPowerLab Forum

Software support => Pi Gateway => Topic started by: LukaQ on February 19, 2017, 05:50:15 AM

Title: Graph questions
Post by: LukaQ on February 19, 2017, 05:50:15 AM
Hello,

I was wondering, why graph is drawn for two data points that have different timestamps and Y value, drawn as 3 points?
y1, time0
y1, time1
y2, time1...

this makes step in every Y change, which you can't smooth out with CurvedLines (is there anything else?).
Why is graph not simply drawn
y1, time1
y2, time2

like it is in database [time,value], I think it should be point to point, not is steps
Title: Re: Graph questions
Post by: Felix on February 21, 2017, 08:27:00 AM
First, you cannot log 2 points with the same timestamp since the timestamp is the log index.
Second, the graph is configured as steps by default, you can override that in your graph options. See flot documentation for how to achieve that.