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

linear.json 3.7 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
105
106
107
108
109
110
111
112
113
114
115
116
  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": "line"
  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. "mark": {
  71. "type": "rule",
  72. "color": "gray"
  73. },
  74. "encoding": {
  75. "x": {
  76. "field": "<DVC_METRIC_X>",
  77. "type": "quantitative"
  78. }
  79. }
  80. },
  81. {
  82. "encoding": {
  83. "text": {
  84. "type": "quantitative",
  85. "field": "<DVC_METRIC_Y>"
  86. },
  87. "x": {
  88. "field": "<DVC_METRIC_X>",
  89. "type": "quantitative"
  90. },
  91. "y": {
  92. "field": "<DVC_METRIC_Y>",
  93. "type": "quantitative"
  94. }
  95. },
  96. "layer": [
  97. {
  98. "mark": {
  99. "type": "text",
  100. "align": "left",
  101. "dx": 5,
  102. "dy": -5
  103. },
  104. "encoding": {
  105. "color": {
  106. "type": "nominal",
  107. "field": "rev"
  108. }
  109. }
  110. }
  111. ]
  112. }
  113. ]
  114. }
  115. ]
  116. }
Tip!

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

Comments

Loading...