Normalize chart data using Ecto and PostgreSQL

How to produce good chart data using Ecto and PostgreSQL