title: Resample Time Data before Publishing to Client using Meteor.js
body: <p>A collection <code>data</code> contains time series data, for example</p>
  
  <pre><code>[
      { timestamp: 1404436523578, distance: 400 }, 
      { timestamp: 1404436525123, distance: 401 },
      { timestamp: 1404436578372, distance: 402 },
      { timestamp: 1404436382736, distance: 403 },
  ]
  </code></pre>
  
  <p>This dataset has to be plotted with datapoints representing 10 minutes interval.</p>
  
  <p>Rather than publishing a huge dataset to the client then performing resampling on the client browser, how can we do the resampling of data on the server side before publishing the resampled data?</p>
  
  <p>Are there any plugins/packages that can help with the resampling of time series data? I could only find <a href="http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.resample.html" rel="nofollow">one for Python</a>.</p>