@@ -10,7 +10,20 @@ it("Plot.autoSpec makes a histogram from a quantitative dimension", () => {
10
10
y : { value : null , reduce : "count" , zero : true } ,
11
11
color : { value : null , reduce : null } ,
12
12
size : { value : null , reduce : null } ,
13
- mark : "bar"
13
+ mark : "bar" ,
14
+ markImpl : "rectY" ,
15
+ markOptions : {
16
+ fx : undefined ,
17
+ fy : undefined ,
18
+ x : { value : Object . assign ( [ 1 , 1 , 38 ] , { label : "value" } ) } ,
19
+ y : undefined ,
20
+ fill : undefined ,
21
+ z : undefined ,
22
+ r : undefined
23
+ } ,
24
+ transformImpl : "binX" ,
25
+ transformOptions : { fill : undefined , r : undefined , y : "count" } ,
26
+ colorMode : "fill"
14
27
} ) ;
15
28
} ) ;
16
29
@@ -23,7 +36,20 @@ it("Plot.autoSpec makes a bar chart from an ordinal dimension", () => {
23
36
y : { value : null , reduce : "count" , zero : true } ,
24
37
color : { value : null , reduce : null , color : "blue" } ,
25
38
size : { value : null , reduce : null } ,
26
- mark : "bar"
39
+ mark : "bar" ,
40
+ markImpl : "barY" ,
41
+ markOptions : {
42
+ fx : undefined ,
43
+ fy : undefined ,
44
+ x : Object . assign ( [ "duck" , "duck" , "goose" ] , { label : "value" } ) ,
45
+ y : undefined ,
46
+ fill : "blue" ,
47
+ z : undefined ,
48
+ r : undefined
49
+ } ,
50
+ transformImpl : "groupX" ,
51
+ transformOptions : { fill : undefined , r : undefined , y : "count" } ,
52
+ colorMode : "fill"
27
53
} ) ;
28
54
} ) ;
29
55
@@ -40,7 +66,20 @@ it("Plot.autoSpec makes a line from a monotonic dimension", () => {
40
66
y : { value : "value" , reduce : null , zero : false } ,
41
67
color : { value : null , reduce : null } ,
42
68
size : { value : null , reduce : null } ,
43
- mark : "line"
69
+ mark : "line" ,
70
+ markImpl : "line" ,
71
+ markOptions : {
72
+ fx : undefined ,
73
+ fy : undefined ,
74
+ x : Object . assign ( [ 1 , 2 , 3 ] , { label : "date" } ) ,
75
+ y : Object . assign ( [ 1 , 1 , 38 ] , { label : "value" } ) ,
76
+ stroke : undefined ,
77
+ z : undefined ,
78
+ r : undefined
79
+ } ,
80
+ transformImpl : undefined ,
81
+ transformOptions : { stroke : undefined , r : undefined } ,
82
+ colorMode : "stroke"
44
83
} ) ;
45
84
} ) ;
46
85
@@ -57,7 +96,20 @@ it("Plot.autoSpec makes a dot plot from two quantitative dimensions", () => {
57
96
y : { value : "y" , reduce : null , zero : false } ,
58
97
color : { value : null , reduce : null } ,
59
98
size : { value : null , reduce : null } ,
60
- mark : "dot"
99
+ mark : "dot" ,
100
+ markImpl : "dot" ,
101
+ markOptions : {
102
+ fx : undefined ,
103
+ fy : undefined ,
104
+ x : Object . assign ( [ 0 , 2 , 1 ] , { label : "x" } ) ,
105
+ y : Object . assign ( [ 0 , 3 , 2 ] , { label : "y" } ) ,
106
+ stroke : undefined ,
107
+ z : undefined ,
108
+ r : undefined
109
+ } ,
110
+ transformImpl : undefined ,
111
+ transformOptions : { stroke : undefined , r : undefined } ,
112
+ colorMode : "stroke"
61
113
} ) ;
62
114
} ) ;
63
115
@@ -77,6 +129,19 @@ it("Plot.autoSpec makes a faceted heatmap", () => {
77
129
y : { value : "y" , reduce : null , zero : false } ,
78
130
color : { value : null , reduce : "count" } ,
79
131
size : { value : null , reduce : null } ,
80
- mark : "bar"
132
+ mark : "bar" ,
133
+ markImpl : "rectY" ,
134
+ markOptions : {
135
+ fx : undefined ,
136
+ fy : "f" ,
137
+ x : { value : Object . assign ( [ 0 , 2 , 1 , 4 , 2 , 4 ] , { label : "x" } ) } ,
138
+ y : { value : Object . assign ( [ 0 , 3 , 2 , 1 , 6 , 2 ] , { label : "y" } ) } ,
139
+ fill : undefined ,
140
+ z : undefined ,
141
+ r : undefined
142
+ } ,
143
+ transformImpl : "bin" ,
144
+ transformOptions : { fill : "count" , r : undefined } ,
145
+ colorMode : "fill"
81
146
} ) ;
82
147
} ) ;
0 commit comments