data = [traceState[“traceAlabama”],
I am trying to produce the above code using for loop with the below code
data = 
for j in state[:Area]
data = [data, traceState[“trace$j”]]
“state[:Area]” is an array with 50 States but it is not giving me what I want. I tried cat() and hcat() as well, but didn’t work. I also tried to directly convert the dictionary into value array format using values(traceState), but it was not in the correct format. “traceState” is a dictionary, and its keys are States and values are the scatter() function to be passed into. Eventually, I would like to use this data to run PlotlyJS.plot(data).