Open Marco-Sulla opened 8 years ago
So Coffeescript is a 1-to-1 translation of JavaScript. This means that your implementation should be able to be easily transformed in its current state. Please give it a go (even if it doesn't work right off the bat) and I can help you get it all the way via a PR :)
To get started check out the various methods already implemented in the library and use this as a simple reference: http://coffeescript.org/
Well, check it: https://github.com/epochjs/epoch/pull/220
PS: do you think it's possible to change the behavior of time.line so push()
can accept an array of values instead of a single value only?
I created an addData method, useful if you want append new data instead of replace it entirely. This is useful to me because server does not send 1 datum to my clients every 1 second, but it sends an array of data every 50 seconds. So I can't use
time.line
.Code is written in Javascript. I do not know CoffeScript, so I can't create a pull request.