NOTE: For this example to work you have to run it in a web server context. This is a simple example showing a resource histogram which makes it easy to detect overallocation. You can change task start/end dates and assignments (by clicking resource column and selecting in the editor) to view how these changes affect the resource histogram.

Note that the js for the example code is not minified so it is readable. See histogram.js.