Hey friends, i’m trying to plot some numbers that i’m getting via api. The catch is that the structure is such that each data point comes with a list of numbers and i want to plot the nth of each list.
So for example the 2nd number of each list needs to be plotted etc
I’d like to stick all the graphs in an RG & just call "this list of numbers :item #:current cell’s index… but i can’t reference any outside numbers.
To be clear, you want to make a list of n’s using each item n from each array provided? maybe this can help you get started. i would use a simple js solution for this
var arrays = [
[1,2,3],
[4,5,6],
[7,8,9]
]
function getarray(apple){
let newarray=[]
let index =
arrays.forEach( (elm) => {
newarray.push(elm[apple])
})
return newarray
}
console.log(getarray(1))
ah, you understood. How do i feed that into the chart though? I assume that just leaves me with a list of numbers… which the line/bar chart element won’t accept