This time is was both a library and a small but decent application to show both the graph and the calculated data.
EmberJS and TypeScript
EmberJS is already build with "object oriented" in mind (inheritance from SproutCore) so TypeScript look like a good fit.
All I need to do it create TypeScript Declaration File (d.ts) for EmberJS API which is exactly what I'm doing right now.
You can see everything in my git repository.
Currently I've just create a small prof-of-concept application.
I'm going to add more into the declaration file, maybe even create some automated script to take EmberJS source code and produce the declaration file automatiically.