vega(calcuvizspec({
models: [loan],
input_cursors: [{
principal_in: 100000,
i_in: (i)/100,
term_in: 25
}],
mark: 'text',
encodings: {
x: {name: 'balance', type: 'quantitative'},
y: {name: 'interest', type: 'quantitative'},
text: {name: 'year_in', type: 'quantitative', domain: _.range(-1,26,1) },
color: {name: 'year_in', type: 'ordinal', domain: _.range(-1,26,1) },
}
}))