I'm struggling with understanding how to access a particular value that is in a nested array. Here's the data structure:
var data = [{id: "Game 1", count:[{date: datevalues, metric: values}] , rank: [{date: datevalues, metric: values}] },
{id: "Game 2", count: [{date: datevalues, metric: values}] , rank: [{date: datevalues, metric: values}] },
{id: "Game 3", count: [{date: datevalues, metric: values}] , rank: [{date: datevalues, metric: values}] },
{id: "Game 4", count: [{date: datevalues, metric: values}] , rank: [{date: datevalues, metric: values}] }]
Inside the array under both the count and rank keys are dictionaries with date and metric values, so going further, it looks like this:
[{date: "2017-01-01", metric: 100},
{date: "2018-01-01", metric: 90]...}]
My question is how do i directly access the date and metric fields?