fil commited on
Commit
72b4769
1 Parent(s): 4fc9c44

upgrade framework, ensure utc

Browse files
Files changed (2) hide show
  1. docs/gazette.md +2 -2
  2. package.json +1 -1
docs/gazette.md CHANGED
@@ -36,7 +36,7 @@ const search = view(
36
 
37
  ```js
38
  const chart = Plot.plot({
39
- x: { nice: true },
40
  y: {
41
  label: `Share of titles matching ${search}`,
42
  tickFormat: "%",
@@ -72,7 +72,7 @@ SELECT year
72
 
73
  ```js
74
  // A Map for fast retrieval—precisely an InternMap, indexed by Date
75
- const gazette = new d3.InternMap(results.map(({ year, c }) => [year, c]));
76
  ```
77
 
78
  ```sql id=base
 
36
 
37
  ```js
38
  const chart = Plot.plot({
39
+ x: { type: "utc", nice: true },
40
  y: {
41
  label: `Share of titles matching ${search}`,
42
  tickFormat: "%",
 
72
 
73
  ```js
74
  // A Map for fast retrieval—precisely an InternMap, indexed by Date
75
+ const gazette = new d3.InternMap(Array.from(results, ({ year, c }) => [year, c]));
76
  ```
77
 
78
  ```sql id=base
package.json CHANGED
@@ -10,6 +10,6 @@
10
  "observable": "observable"
11
  },
12
  "dependencies": {
13
- "@observablehq/framework": "1"
14
  }
15
  }
 
10
  "observable": "observable"
11
  },
12
  "dependencies": {
13
+ "@observablehq/framework": "latest"
14
  }
15
  }