26medias / timeseries-analysis

NPM Package - Timeseries analysis, noise removal, stats, ...
237 stars 48 forks source link

Pure Javascript implementation? #1

Closed maeishoj closed 8 years ago

maeishoj commented 8 years ago

Is it possible to use this in front end? Are you aware of any similar library?

26medias commented 8 years ago

Hi,

Yes, you can use front-end, but you'll have to make a few changes to timeseries-analysis.js

First, load underscore.js on your page (http://underscorejs.org/) Then, remove the "require(...)" on top of the file and remove the "exports.*" at the bottom.

Then use as per the doc. If you wish to use the chart() method, you'll have to also modify the "google-image-chart" dependency to make it work on the client-side but it might be faster to just re-implement a new charting function using something like highcharts for example.

I haven't used that client-side, and I'm not sure if there are other libs that do that type of thing.

maeishoj commented 8 years ago

Hey there! Thanks a lot!!