Skip to main content
100%

drag 'n drop test

✓ Published0🌍 Public
MMilowB
Last edited Dec 5, 2017
Created on Dec 5, 2017

This example shows a weekly course schedule where each class is represented as a draggable horizontal bar on a grid of days and time slots. Users can move courses vertically to new time slots, and the bar turns red if it would collide with another course on the same day. Built with D3 v3’s `d3.behavior.drag`, the visualization uses `d3.time.format` for time parsing, `d3.transform` for reading translations, and Underscore.js for collision detection via intersection and containment checks. The SVG rendering includes axes, grid lines, and color-coded course categories, with data defined inline as a sample array.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes