Tengo un array:
arr = ['{"name" :"2022-04","data" :[152043,34566,32822,119…3303,62443,106813,198610,7471,93079,94010,61480]}', '{"name" :"2022-05","data" :[202902,167302,18397,-3…80443,145507,176171,-538951,110725,40155,169434]}', '{"name" :"2022-06","data" :[-37206,-150870,557932,…9,125193,121075,43071,83886,122242,242863,86600]}', '{"name" :"2022-07","data" :[283306,111983,128260,1…235905,345279,57132,132560,204066,177546,272639]}', '{"name" :"2022-08","data" :[235802,235413,95417,13…51033,146644,180573,167246,-290330,354458,26594]}']
este array necesito utilizarlo para graficarlo en la siguiente linea Ejemplo de manera manual:
options_ngr_total_diario.series = [{"name" :"2022-04","data" :[152043,34566,32822,119970,249000,-66259,134527,193362,99277,-19567,108284,248939,241789,224130,100789,107930,-76107,113509,104240,235695,-45184,102598,113303,62443,106813,198610,7471,93079,94010,61480]},{"name" :"2022-05","data" :[202902,167302,18397,-317839,208278,203713,212284,90929,142553,15752,191791,17052,51734,300895,392242,198065,163279,228416,41949,195923,-94365,11067,134544,188480,180443,145507,176171,-538951,110725,40155,169434]}];
pero no funciona porque entendería que cuando lo llamo al array:
options_ngr_total_diario.series = arr ;
lo esta llevando con las comillas y sus corchetes intenté convertirlo a string pero en ese caso al llamarlo al string tampoco funciona.
options_ngr_total_diario.series = arr.map(item => JSON.parse(item))
, para transformar cada elemento en un objeto