Background: I have 3 resources that may be in one of 2 states: either taken or free. My web application is get informed wherever each resource is taken and freed. I want to display in a graph for the last 24 hours when each resource was taken and released.
So I want to have a graph that looks something like:
How can I achieve this in JavaScript?
1