Commit 121faa5a authored by Pranav Vadrevu's avatar Pranav Vadrevu

Add backwards compatibility with old spec

parent d298ab7d
Pipeline #91220 failed with stage
in 1 minute and 15 seconds
......@@ -48,7 +48,17 @@ function scale(data, config) {
if (scale == 'Sequential') {
scale = 'Linear'
}
if (config.scheme) {
config.range = {scheme: config.scheme}
if (continous_scales.indexOf(scale) < 0 && config.count) {
config.range.count = config.count
}
}
if (!config.domain) {
config.domain = {metric: config.metric}
}
// Range Resolver
if (!Array.isArray(config.range)) {
// if Continous scale
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment