Stroke Dash on Vega printing error

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?

What version of the stack are you running ? Can you attach the logs - what does it show ...? few lines before and after too, helps in debugging it .

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.