In order to feed some chartjs, I need to get from the following
a new array with all values like [0, 1, 0, 0, 0, 0.324, 0.25, 0.71...]. I've been playing with map but without success, I'm definitely missing something. Any help/input appreciated. Thank you