Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

scatter.json 3.2 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
  1. {
  2. "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
  3. "data": {
  4. "values": "<DVC_METRIC_DATA>"
  5. },
  6. "title": "<DVC_METRIC_TITLE>",
  7. "width": 300,
  8. "height": 300,
  9. "layer": [
  10. {
  11. "encoding": {
  12. "x": {
  13. "field": "<DVC_METRIC_X>",
  14. "type": "quantitative",
  15. "title": "<DVC_METRIC_X_LABEL>"
  16. },
  17. "y": {
  18. "field": "<DVC_METRIC_Y>",
  19. "type": "quantitative",
  20. "title": "<DVC_METRIC_Y_LABEL>",
  21. "scale": {
  22. "zero": false
  23. }
  24. },
  25. "color": {
  26. "field": "rev",
  27. "type": "nominal"
  28. }
  29. },
  30. "layer": [
  31. {
  32. "mark": "point"
  33. },
  34. {
  35. "selection": {
  36. "label": {
  37. "type": "single",
  38. "nearest": true,
  39. "on": "mouseover",
  40. "encodings": [
  41. "x"
  42. ],
  43. "empty": "none",
  44. "clear": "mouseout"
  45. }
  46. },
  47. "mark": "point",
  48. "encoding": {
  49. "opacity": {
  50. "condition": {
  51. "selection": "label",
  52. "value": 1
  53. },
  54. "value": 0
  55. }
  56. }
  57. }
  58. ]
  59. },
  60. {
  61. "transform": [
  62. {
  63. "filter": {
  64. "selection": "label"
  65. }
  66. }
  67. ],
  68. "layer": [
  69. {
  70. "encoding": {
  71. "text": {
  72. "type": "quantitative",
  73. "field": "<DVC_METRIC_Y>"
  74. },
  75. "x": {
  76. "field": "<DVC_METRIC_X>",
  77. "type": "quantitative"
  78. },
  79. "y": {
  80. "field": "<DVC_METRIC_Y>",
  81. "type": "quantitative"
  82. }
  83. },
  84. "layer": [
  85. {
  86. "mark": {
  87. "type": "text",
  88. "align": "left",
  89. "dx": 5,
  90. "dy": -5
  91. },
  92. "encoding": {
  93. "color": {
  94. "type": "nominal",
  95. "field": "rev"
  96. }
  97. }
  98. }
  99. ]
  100. }
  101. ]
  102. }
  103. ]
  104. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...