app/static/js/lib/data.js
// Convert column series to chart data
Convert column series to chart data
Convert column series to chart data
function toChartData (series, data) {
    const indexer = (value, year) => {
        return fromPairs([
            ['Year', parseInt(year)],
            [series, parseFloat(value)], 
        ])
    }
    return mapObjIndexed(indexer, data)
}
function toChartData ( series , data ) { const indexer = ( value , year ) => { return fromPairs ( [ [ 'Year' , parseInt ( year ) ] , [ series , parseFloat ( value ) ] , ] ) } return mapObjIndexed ( indexer , data ) }
Convert column series to chart data
Convert column series to chart data
// TODO Maybe check with isFinite?