fixing based on Thomas' review

This commit is contained in:
ppisljar 2016-12-14 09:27:50 +01:00
parent be913a4a31
commit 1a285e35d1
3 changed files with 3 additions and 2 deletions

View file

@ -42,7 +42,7 @@ export default function HistogramVisType(Private) {
}],
interpolationModes: [{
value: 'linear',
text: 'normal',
text: 'straight',
}, {
value: 'cardinal',
text: 'smoothed',

View file

@ -42,7 +42,7 @@ export default function HistogramVisType(Private) {
}],
interpolationModes: [{
value: 'linear',
text: 'normal',
text: 'straight',
}, {
value: 'cardinal',
text: 'smoothed',

View file

@ -5,6 +5,7 @@ export default function ColumnHandler(Private) {
const createSeries = (cfg, series) => {
const stacked = ['stacked', 'percentage', 'wiggle', 'silhouette'].includes(cfg.mode);
let interpolate = cfg.interpolate;
// for backward compatibility when loading URLs or configs we need to check smoothLines
if (cfg.smoothLines) interpolate = 'cardinal';
return {