Hello, i’m trying to create a chart for this (already have a custom field and I use it for TTs). tried this
{
let watts = icu.streams.fixed_watts
let speed = icu.streams.velocity_smooth
for (let i = 0; i < data.length; i++) data[i] = (speed[i] / watts[i] * 1000)
}
but graph doen’t appear
any help?
(post deleted by author)
this is solved how to delete it?
Would you mind sharing how it got solved? I guess by a check for division by 0?
it was bugged when power was equal to 0 (the code is basicalli speed/power so it resaults infinite as speed/power(0)) I put a +1 at power so I have now a big number but at least i see the chart. There is other ways to solve that?