-
Count numbers up and down from array
Hi,
I’m working on a video that show info about amount of sale in malls in one country in 24 h. I need to show a different number for every hour. I wrote an expression but it only shows the last pass. As you can see, I have an array and I want the counter to grab 1st number and count to 2nd, grab 2nd and count to 3rd etc.
I’ll be grateful for any ideas.Magda
walmart = [ 498, 306, 68, 116, 130,146, 478, 1318,2328, 2904, 2818, 3246, 3536,3066,3030,2938,3342, 3222,3088,2730,2446,2792,2634,1838];
for(i=0; i < 23; i++){
startCount = walmart[i];
endCount = walmart[i+1];
countDur = 5;
Math.round(linear(time,0,countDur,startCount,endCount))
}