If you have a collection of timestamped data, the open source tool, Cube, can derive metrics from that data. It's built on MongoDB and works with a JavaScript library called Cubism for data visualization.