Hey, can someone help me out here? I'm struggling to figure out how to access the data in my object properly. For example, when I use console.log(response.data.Data), this is how my data looks:
Object {
"2014": Object {
"1": "3.385",
"10": "-0.191",
"11": "0.383",
"12": "0.191",
"2": "3.023",
"3": "3.667",
"4": "3.774",
"5": "-2.045",
"6": "2.088",
"7": "5.455",
"8": "-3.448",
"9": "16.741",
},
"2015": Object {
"1": "1.905",
"10": "5.092",
"11": "-4.070",
"12": "7.475",
"2": "5.421",
"3": "5.142",
"4": "-9.106",
"5": "4.824",
"6": "-4.425",
"7": "-2.963",
"8": "-1.527",
"9": "-4.845",
},
"2016": Object {
"1": "-1.504",
"10": "-1.115",
"11": "-7.891",
"12": "8.392",
"2": "2.863",
"3": "-1.299",
"4": "-1.880",
"5": "-0.383",
"6": "2.500",
"7": "8.443",
"8": "4.152",
"9": "4.319",
}
}
I'm having trouble accessing specific parts of the object using commands like console.log(response.data.Data.2014) or console.log(response.data.Data.object).
What's the best way for me to extract the year and month object data from this structure?
Thanks a lot!