app/static/js/lib/estimate.js
// Transform chart data format into object with arrays for years and data
Transform chart data format into object with arrays for years and data
Transform chart data format into object with arrays for years and data
function dataForEstimate (series) {
    const numbers = filter(is(Number), series) 
    const [years, data] = transpose(toPairs(numbers))
    return {
        years: map(parseInt, years),
        data: map(parseFloat, data),
    }
}
function dataForEstimate ( series ) { const numbers = filter ( is ( Number ) , series ) const [ years , data ] = transpose ( toPairs ( numbers ) ) return { years : map ( parseInt , years ) , data : map ( parseFloat , data ) , } }
Transform chart data format into object with arrays for years and data
Transform chart data format into object with arrays for years and data
// TODO Maybe use isFinite? // TODO Change API to accept series data with years as indices