precision-sustainable-ag/tech-dashboard

Cotton yield off by a factor of 10

Opened this issue · 1 comments

It's supposed to be round(10*x)/10 and they forgot the divide by 10 at the end.

return Math.round(10 * rowData['lint.kg_ha']);

Also the yield table isn't showing the treatment column from the response for any of the cash crops.

Also the units toggle isn't working correctly. The units on Cotton are kg/ha and lbs/ac not bu/ac, so I think it's not hitting this conditional.

if (units === 'bu/ac') {