Skip to content

Commit

Permalink
Remove reference to penguins in group transform docs (#1716)
Browse files Browse the repository at this point in the history
  • Loading branch information
nachocab authored Jun 23, 2023
1 parent 5f045ce commit fe1116b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/transforms/group.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import * as Plot from "@observablehq/plot";
import * as d3 from "d3";
import {shallowRef, onMounted} from "vue";
import penguins from "../data/penguins.ts";

const olympians = shallowRef([{weight: 31, height: 1.21, sex: "female"}, {weight: 170, height: 2.21, sex: "male"}]);

Expand Down Expand Up @@ -41,7 +40,7 @@ Plot.plot({
Ordinal domains are sorted naturally (alphabetically) by default. Either set the [scale **domain**](../features/scales.md) explicitly to change the order, or use the mark [**sort** option](../features/scales.md#sort-mark-option) to derive the scale domain from a channel.
:::

The groupX transform groups on **x**. The *outputs* argument (here `{y: "count"}`) declares desired output channels (**y**) and the associated reducer (*count*). Hence the height of each bar above represents the number of penguins of each species.
The groupX transform groups on **x**. The *outputs* argument (here `{y: "count"}`) declares desired output channels (**y**) and the associated reducer (*count*). Hence the height of each bar above represents the number of Olympic athletes by sport.

<!-- For example, to sort **x** by descending **y**: -->

Expand Down

0 comments on commit fe1116b

Please sign in to comment.