make chart by DB data