Chart (and some others) seems like a god-class that does almost everything. 700 lines of Coffeescript in one definition is a bit much, separate responsibilities and abstract functionality away into separate objects. Makes it easier to tweak, experiment and add/remove functionality. At the very least it makes it easier to refactor, bugfix and mentally comprehend the program flow and structure.
Chart (and some others) seems like a god-class that does almost everything. 700 lines of Coffeescript in one definition is a bit much, separate responsibilities and abstract functionality away into separate objects. Makes it easier to tweak, experiment and add/remove functionality. At the very least it makes it easier to refactor, bugfix and mentally comprehend the program flow and structure.