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 2e43f40 commit 41701bdCopy full SHA for 41701bd
src/marks/dot.js
@@ -38,9 +38,11 @@ export class Dot extends Mark {
38
const {channels} = this;
39
const symbolChannel = channels.find(({scale}) => scale === "symbol");
40
if (symbolChannel) {
41
+ const fillChannel = channels.some(({name}) => name === "fill");
42
+ const strokeChannel = channels.some(({name}) => name === "stroke");
43
symbolChannel.hint = {
- fill: channels.some(({name}) => name === "fill") ? "color" : this.fill,
- stroke: channels.some(({name}) => name === "stroke") ? "color" : this.stroke
44
+ fill: fillChannel && fillChannel.value === symbolChannel.value ? "color" : this.fill,
45
+ stroke: strokeChannel && strokeChannel.value === symbolChannel.value ? "color" : this.stroke
46
};
47
}
48
0 commit comments