The ruby wrapper lib around the JS is dead simple. Could be ported to any language with ease. Very nice work!
https://github.com/ankane/chartkick/blob/master/lib/chartkic...
https://github.com/ankane/chartkick/blob/master/lib/chartkic...
(Disclosure: I am the developer of RazorFlow, and am only posting here because I feel it's relevant to this particular story)
https://github.com/agiliq/django-graphos
I am going to pick up some ideas from your code.