Scales.js: Is it possible to have discrete colour schemes, eg SchemeBlues[k] for mapviewer
attrs: {
fillColor: { // Fill the regions
metric: 'loan_amount', // with the "score" column from state_score.json
range: 'RdYlGn', // using a RdYlGn gradient
scheme: 'schemeBlues',
scale: 'ordinal'
}}
Did not work, as line 58 of scale.js result = d3['scale' + scale](d3[color]).domain(domain)
doesn't let me use array notation.
Edited by Karmanya Aggarwal