File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,14 @@ export async function intervalWeekMonth() {
6
6
return Plot . plot ( {
7
7
marginLeft : 80 ,
8
8
color : { type : "linear" , scheme : "blues" } ,
9
- marks : [
10
- { label : "month" , interval : "month" as Plot . TimeIntervalName } ,
11
- { label : "d3.utcMonth" , interval : d3 . utcMonth as Plot . IntervalImplementation < Date > } ,
12
- { label : "week" , interval : "week" as Plot . TimeIntervalName } ,
13
- { label : "d3.utcWeek" , interval : d3 . utcWeek as Plot . IntervalImplementation < Date > }
14
- ] . map ( ( { label, interval} : { label : string ; interval : Plot . Interval < Date > } ) =>
9
+ marks : (
10
+ [
11
+ { label : "month" , interval : "month" } ,
12
+ { label : "d3.utcMonth" , interval : d3 . utcMonth } ,
13
+ { label : "week" , interval : "week" } ,
14
+ { label : "d3.utcWeek" , interval : d3 . utcWeek }
15
+ ] as const
16
+ ) . map ( ( { label, interval} ) =>
15
17
Plot . barX ( data , {
16
18
x : "date" ,
17
19
filter : ( d ) => d . industry === "Construction" ,
You can’t perform that action at this time.
0 commit comments