We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3c84f0 commit 37326d8Copy full SHA for 37326d8
src/mark.js
@@ -8,7 +8,7 @@ const objectToString = Object.prototype.toString;
8
export class Mark {
9
constructor(data, channels = [], options = {}) {
10
const names = new Set();
11
- this.data = arrayify(data);
+ this.data = data;
12
this.transform = maybeTransform(options);
13
this.channels = channels.filter(channel => {
14
const {name, value, optional} = channel;
@@ -29,7 +29,7 @@ export class Mark {
29
});
30
}
31
initialize(facets) {
32
- let data = this.data;
+ let data = arrayify(this.data);
33
let index = facets === undefined && data != null ? range(data) : facets;
34
if (data !== undefined && this.transform !== undefined) {
35
if (facets === undefined) index = index.length ? [index] : [];
0 commit comments