hvega-0.11.0.1: tests/specs/fillstroke/strokedash4.vl
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"concat": [
{
"encoding": {
"strokeDash": {
"field": "cat",
"scale": {
"domain": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"range": [
[
1,
0
],
[
5,
4
],
[
2,
4
],
[
8,
4,
4,
4
],
[
1,
3
],
[
16,
4
],
[
6,
4
],
[
8,
4
],
[
4,
6
],
[
10,
4
]
]
},
"type": "nominal"
},
"x": {
"field": "x",
"type": "quantitative"
},
"y": {
"field": "y",
"type": "quantitative"
}
},
"mark": "line",
"title": "Nominal",
"width": 200
},
{
"encoding": {
"strokeDash": {
"field": "cat",
"scale": {
"domain": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"range": [
[
1,
0
],
[
5,
4
],
[
2,
4
],
[
8,
4,
4,
4
],
[
1,
3
],
[
16,
4
],
[
6,
4
],
[
8,
4
],
[
4,
6
],
[
10,
4
]
]
},
"type": "ordinal"
},
"x": {
"field": "x",
"type": "quantitative"
},
"y": {
"field": "y",
"type": "quantitative"
}
},
"mark": "line",
"title": "Ordinal",
"width": 200
}
],
"config": {
"axis": {
"grid": false,
"title": null
},
"line": {
"color": "orange",
"opacity": 0.6,
"strokeWidth": 1
}
},
"data": {
"values": [
{
"cat": 1,
"x": 0,
"y": 100
},
{
"cat": 1,
"x": 1,
"y": 100
},
{
"cat": 2,
"x": 0,
"y": 90
},
{
"cat": 2,
"x": 1,
"y": 90
},
{
"cat": 3,
"x": 0,
"y": 80
},
{
"cat": 3,
"x": 1,
"y": 80
},
{
"cat": 4,
"x": 0,
"y": 70
},
{
"cat": 4,
"x": 1,
"y": 70
},
{
"cat": 5,
"x": 0,
"y": 60
},
{
"cat": 5,
"x": 1,
"y": 60
},
{
"cat": 6,
"x": 0,
"y": 50
},
{
"cat": 6,
"x": 1,
"y": 50
},
{
"cat": 7,
"x": 0,
"y": 40
},
{
"cat": 7,
"x": 1,
"y": 40
},
{
"cat": 8,
"x": 0,
"y": 30
},
{
"cat": 8,
"x": 1,
"y": 30
},
{
"cat": 9,
"x": 0,
"y": 20
},
{
"cat": 9,
"x": 1,
"y": 20
},
{
"cat": 10,
"x": 0,
"y": 10
},
{
"cat": 10,
"x": 1,
"y": 10
}
]
},
"resolve": {
"scale": {
"strokeDash": "independent"
}
}
}