Fill In underneath line Chart?
Posted: Wed Mar 25, 2020 5:41 am
Hi Dave,
Hope you are keeping safe and well?
Here in the UK (as in other places) we are in "Lock-down" and I am taking the opportunity to revamp my motion detection "algorithms" - something I have been intending to do for years!
I am using timers so that is soon as motion is detected, it kicks off a 2 minute timer that gets restarted if motion continues. The result of my scripts is that a variable "MOTION_ACTIVE" is updated with true when motion starts and false when it ends. On demand, I create a csv file with timestamps and 1 for true and 0 for false e.g.:
I then create a graph using the following options:
This gives the result as follows:
What I want to do is to fill in the area under the line (so it appears like a bar graph) to better show when motion is detected. If I check the option Fill? then I get this result:
I suspect I haven't set the correct options to achieve what I want, can you possibly point me in the correct direct?
Hope you are keeping safe and well?
Here in the UK (as in other places) we are in "Lock-down" and I am taking the opportunity to revamp my motion detection "algorithms" - something I have been intending to do for years!
I am using timers so that is soon as motion is detected, it kicks off a 2 minute timer that gets restarted if motion continues. The result of my scripts is that a variable "MOTION_ACTIVE" is updated with true when motion starts and false when it ends. On demand, I create a csv file with timestamps and 1 for true and 0 for false e.g.:
- Code: Select all
2020-03-25 09:19:46.098368,0
2020-03-25 09:20:01.220973,1
2020-03-25 09:24:11.801237,0
2020-03-25 09:31:04.650543,1
2020-03-25 10:01:06.151857,0
2020-03-25 10:15:05.272432,1
I then create a graph using the following options:
This gives the result as follows:
What I want to do is to fill in the area under the line (so it appears like a bar graph) to better show when motion is detected. If I check the option Fill? then I get this result:
I suspect I haven't set the correct options to achieve what I want, can you possibly point me in the correct direct?