I using chart package for data analystics
Here is my code:
const param = ['Country', 'Device_Model', 'MMA', 'Game'] // other parameters i want to use eg: Game (current)
let arr = []
const handleChangeParam = () => {
for (let i = 0; i < context.gameAdData.length; i++) {
context.gameAdData[i].map((element) =>
arr.push(element._fieldsProto.!!!Game?!!!.stringValue) // Here is parameter Game
)
}
return arr
}
here is ss:
I need to replace the 'Game' parameter that I specified in the exclamation point with other parameters in the first line.
The image that comes to my mind is as follows, I click the buttons and pull the relevant data