title: Aggregate data into days, weeks, months for Flot time chart
body: <p>I would like to create charts similar to Google Analytics which allow you to aggregate data by day, week, month...</p>
  
  <p>As an example, the following chart data displays daily data for a month:</p>
  
  <p><img src="https://i.stack.imgur.com/DQydC.png" alt="enter image description here"></p>
  
  <p>And by clicking 'Week', the chart aggregates the data points into weeks:</p>
  
  <p><img src="https://i.stack.imgur.com/9PBpp.png" alt="enter image description here"></p>
  
  <p>The closest I can find is the Ruby library Timeslicer, <a href="https://github.com/Trimeego/timeslicer" rel="nofollow noreferrer">https://github.com/Trimeego/timeslicer</a> . Is there something similar in Javascript or a Flot plugin out there?</p>