How to make an aggregate graph from Zabbix item with 1/0 output

Hey all, thanks in advance for checking out my question.

What I’m trying to do is show the number of hosts in our environment that are returning a 1 and 0 from a Zabbix item. Each host is either reporting a 1 or 0 (for currently building and not building) and I want the bars on the graph to dynamically change based on the number of hosts returning each. It should look something like this drawing:

image

I’ve already put many hours into this with no success so I’d love it if someone could point me in the right direction!

Thanks,
Jesse