I'm trying to display data on vertical chart bars using some aggregations.
For example, if I have this kind of data:
{
"username": "toto",
"role": "master",
"month": "october"
},
{
"username": "tata",
"role": "trainee",
"month": "october"
},
{
"username": "titi",
"role": "trainee",
"month": "september
},
{
"username": "tutu",
"role": "trainee",
"month": "september
}
I want to display verticaly on a chart bar, per month, usernames group by role.
I guess in SQL it would be like "SELECT username from my_index GROUP by role, month"