I need to create a more organized array of data to parse into my template
How could I write this better? I’d like to group the arrays in their own arrays like Vars: [array], [array] … mvData: [array], [array] … etc..
I’d like to be able to use vars.globalVars[2] / mvData.Revenue – etc…
I am still learning about arrays – see what I have below. All the data is just figurative..
vars = ['Game', 'Player', 'Social Stats'];
mvData = ['22,359', '16,235', '10,938', '5,305', '12,588', '6,583'];
evoMetric = ['Registered Players', 'Started Missions', 'Objects Bought', 'Combats', 'Guerrilla Combats', 'Teams Created', 'Guerillas created'];
playerMetric = ['playerMetric', 'playerMetric', 'playerMetric', 'playerMetric', 'playerMetric', 'playerMetric', 'playerMetric'];
socialMetric = ['Invitations', 'Gifts', 'Combats', 'Comic', 'Trailer', 'Illustration', 'Mission', 'Levels'];
In Javascript, you can easily create complex data structures. The following is a valid object