Add conversion to bar plot
+import convertTableToArray from '../types/convertTableToArray'
+
export default function bars (data, x, y) {
x = x || 'x'
y = y || 'y'
@@ -5,7 +7,7 @@ export default function bars (data, x, y) {
return {
type: 'vegalite',
data: {
- values: data
+ values: convertTableToArray(data)
},
mark: 'bar',
encoding: {
