Statistics for rails models with MetricsGraphics.js