Code now at the Github Repo (I’ve abandoned the infuriating and frankly futile process of trying to embed and format code blocks here in WordPress.com).
The trailing seven days of data is illustrated by day and summarized by hour of each day.
Each cell represents an hour and the roll-over tool tip summarizes the activity for that hour.
The data source is a series of flat files (CSV) exported from the Meditech DR. You can automate this CSV Export with some PowerShell.[gist https://gist.github.com/nyquist212/ccf18a7959fe66c8abee]
Save this code with a .PS1 file extension and schedule it to execute with either Windows Task Scheduler or a SQL Server Agent Job.
If you want to connect the visualization to a live query and feed the visualization directly from the DR, see this post –