Custom aggregation interval

Hi,

  1. How do I set a custom aggregation interval say 10 mins or 15 mins for a chart ?
  2. Also, can the time period of aggregation period be aligned to a timeseries - the timeline series show timestamp on x axis, whereas aggregate only shows number?

Any way to achieve this ?