Skip to content

Commit 0de63df

Browse files
committed
more version badges
1 parent 72831bb commit 0de63df

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

docs/features/shorthand.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const gene = "AAAAGAGTGAAGATGCTGGAGACGAGTGAAGCATTCACTTTAGGGAAAGCGAGGCAAGAGCGTTTC
7373

7474
</script>
7575

76-
# Shorthand
76+
# Shorthand <VersionBadge version="0.4.2" />
7777

7878
The most concise form of Plot is its **shorthand** syntax where no options are specified — only data. To use this shorthand, the data must have a specific structure: either a one-dimensional array of values [*v₀*, *v₁*, *v₂*, …] or a two-dimensional array of tuples [[*x₀*, *y₀*], [*x₁*, *y₁*], [*x₂*, *y₂*], …].
7979

docs/features/transforms.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ You can specify a custom initializer by specifying a function as the mark **init
191191

192192
If an initializer desires a channel that is not supported by the downstream mark, additional channels can be declared using the mark **channels** option.
193193

194-
## transform(*options*, *transform*) {#transform}
194+
## transform(*options*, *transform*) <VersionBadge version="0.4.3" /> {#transform}
195195

196196
```js
197197
Plot.transform(options, (data, facets) => {
@@ -203,7 +203,7 @@ Plot.transform(options, (data, facets) => {
203203
```
204204
Given an *options* object that may specify some basic transforms (**filter**, **sort**, or **reverse**) or a custom **transform** function, composes those transforms if any with the given *transform* function, returning a new *options* object. If a custom **transform** function is present on the given *options*, any basic transforms are ignored. Any additional input *options* are passed through in the returned *options* object. This method facilitates applying the basic transforms prior to applying the given custom *transform* and is used internally by Plot’s built-in transforms.
205205

206-
## initializer(*options*, *initializer*) {#initializer}
206+
## initializer(*options*, *initializer*) <VersionBadge version="0.5.0" /> {#initializer}
207207

208208
This helper composes the *initializer* function with any other transforms present in the *options*, and returns a new *options* object. It is used internally by Plot’s built-in initializer transforms.
209209

@@ -226,7 +226,7 @@ If *type* is specified, it must be Array or a similar class that implements the
226226

227227
valueof is not guaranteed to return a new array. When a transform method is used, or when the given *value* is an array that is compatible with the requested *type*, the array may be returned as-is without making a copy.
228228

229-
## column(*source*) {#column}
229+
## column(*source*) <VersionBadge version="0.4.3" /> {#column}
230230

231231
```js
232232
const [X, setX] = Plot.column();

docs/marks/hexgrid.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import penguins from "../data/penguins.ts";
66

77
</script>
88

9-
# Hexgrid mark
9+
# Hexgrid mark <VersionBadge version="0.5.0" />
1010

1111
The **hexgrid mark** draws a hexagonal grid spanning the frame. It can be used with the [hexbin transform](../transforms/hexbin.md) to show how points are binned. The **binWidth** option specifies the distance between centers of neighboring hexagons in pixels; it defaults to 20, matching the hexbin transform.
1212

docs/transforms/normalize.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ The **basis** option specifies how to normalize the series values; it is one of:
121121
* a function to be passed an array of values, returning the desired basis
122122
* a function to be passed an index and channel value array, returning the desired basis
123123

124-
## normalize(*basis*) {#normalize}
124+
## normalize(*basis*) <VersionBadge version="0.2.3" /> {#normalize}
125125

126126
```js
127127
Plot.map({y: Plot.normalize("first")}, {x: "Date", y: "Close", stroke: "Symbol"})

docs/transforms/window.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ The following named reducers are supported:
181181

182182
A reducer may also be specified as a function to be passed an index of size **k** and the corresponding input channel array; or if the function only takes one argument, an array of **k** values.
183183

184-
## window(*k*) {#window}
184+
## window(*k*) <VersionBadge version="0.2.3" /> {#window}
185185

186186
```js
187187
Plot.map({y: Plot.window(24)}, {x: "Date", y: "Close", stroke: "Symbol"})

0 commit comments

Comments
 (0)