arbitrary-form data collector and grapher using sinatra and d3