Hi
I have a json that contains an array on it. The structure is something like this:
{date:xxx, stock: [ {name: xxx : status:OK}, {name: yyy : status:OK}, {name: zzz : status:KO}, {name: xxz : status:OK},]}
I would like to visualise a bar chart that contains in the Y axis the number of status:OK i have in the array
How can i count the number of occurrences in an array based on a condition? In that example, If i filter by stock.status=OK, it just display a bar with the size 1 instead of 3.
Thanks