# Stroke Dash on Vega printing error

**URL:** <https://discuss.elastic.co/t/stroke-dash-on-vega-printing-error/311808>\
**Category:** Kibana\
**Tags:** vega\
**Created:** [August 10, 2022, 8:28am UTC](https://discuss.elastic.co/t/stroke-dash-on-vega-printing-error/311808 "2022-08-10T08:28:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Itamar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/itamar/32/109330_2.png) [@Itamar](https://discuss.elastic.co/u/Itamar)\
**Post date:** [August 10, 2022, 8:28am UTC](https://discuss.elastic.co/t/stroke-dash-on-vega-printing-error/311808/1 "2022-08-10T08:28:05Z")

</div>

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.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/7/d78b352c363b7daa084aacb7dee239018f3fa68a.png)

my code look like this:  
on scales:

```auto
{
      "name": "strokeDash",
      "type": "ordinal",
      "domain": {"data": "source", "field": "channel_buckets.key", "sort": true},
      "range": [0, 1]
    }

```

on marks:

```auto
"strokeDash": {"scale": "strokeDash", "field": "rate_buckets.key"},

```

Someone know how to fix it?

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [August 12, 2022, 7:29pm UTC](https://discuss.elastic.co/t/stroke-dash-on-vega-printing-error/311808/2 "2022-08-12T19:29:12Z")

</div>

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 .

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 9, 2022, 7:29pm UTC](https://discuss.elastic.co/t/stroke-dash-on-vega-printing-error/311808/3 "2022-09-09T19:29:49Z")

</div>

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