SSCI JavaScript Library

Smooth, deseasonalise and analyse data series

Overview

This library was originally written to help with modifying data prior to charting it via the D3 JavaScript library. It contains a subset of functions from the Excel VBA add-in.

There are currently 22 functions broken into 6 sections.

Most of the functions have accessor functions to modify the data once passed to the function but the default is that the data is in the form of an array of points (i.e. x and y coordinates). So:

[ [x1, y1], [x2, y2], [x3, y3] ]

Download

ssci.js v1.3.1
Minified v1.3.1
big.js v3.1.3
Minified v3.1.3

Dependencies

This library relies on big.js. This is used as overflow errors occur otherwise when fitting polynomials. I've modified the DP variable and have provided links above to the adjusted libraries.

Usage

Add the following tags to your HTML:


<script src="your-folder/big.js"></script>
<script src="your-folder/ssci.js"></script>
            

See the individual pages on the left for details of the functions.