I'm trying to make a stroke dash on Vega.
when I tried it on their website it worked fine.
but when I tried it on Vega it printed this error:
- Failed to execute 'setLineDash' on 'CanvasRenderingContext2D': The provided value cannot be converted to a sequence.
my code look like this:
on scales:
{
"name": "strokeDash",
"type": "ordinal",
"domain": {"data": "source", "field": "channel_buckets.key", "sort": true},
"range": [0, 1]
}
on marks:
"strokeDash": {"scale": "strokeDash", "field": "rate_buckets.key"},
Someone know how to fix it?