feat: Support undefined valueType in axisSpec

This commit is contained in:
1ambda 2017-03-15 21:48:23 +09:00
parent 7a454ff821
commit 936901b553

View file

@ -51,7 +51,12 @@ class AdvancedTransformation extends Transformation {
columns: self.columns,
getAxisAnnotation: (axisSpec) => {
return `${axisSpec.name} (${axisSpec.valueType})`
let anno = `${axisSpec.name}`
if (axisSpec.valueType) {
anno = `${anno} (${axisSpec.valueType})`
}
return anno
},
getSingleDimensionAxis: (axisSpec) => {