Skip to content

Commit a2d1a2f

Browse files
committed
display main diagonal in vega
1 parent 287ffd9 commit a2d1a2f

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

PSGraph.Vega.Extensions/Assets/vega.dsm.matrix.json

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@
3636
],
3737
"values": []
3838
},
39-
{
40-
"name": "edgeMap",
41-
"values": []
42-
},
4339
{"name": "cross", "transform": [{"type": "cross"}], "source": "nodes"},
4440
{
4541
"name": "selectedLinks",
@@ -73,6 +69,21 @@
7369
}
7470
],
7571
"marks": [
72+
{
73+
"type": "rect",
74+
"from": {"data": "nodes"},
75+
"encode": {
76+
"update": {
77+
"x": {"scale": "position", "field": "order"},
78+
"y": {"scale": "position", "field": "order"},
79+
"width": {"scale": "position", "band": 1, "offset": -1},
80+
"height": {"scale": "position", "band": 1, "offset": -1},
81+
"fill": {"value": "#cccccc"},
82+
"fillOpacity": {"value": 0.45}
83+
}
84+
},
85+
"zindex": 0
86+
},
7687
{
7788
"from": {"data": "edges"},
7889
"type": "rect",

0 commit comments

Comments
 (0)