Skip to content

Cheatsheet Overview

Compact overview of core GoFish building blocks and their key operators.

Marks

Marks are the basic building blocks of graphics. They are used to create the visual elements of a graphic.

Usage

markThe mark method is used to specify the shapes we place in each of the regions created by the flow operator.
refThe ref method is used to reference a shape by its name.

Components

rect({...}) A rectangle shape.
ellipse({...}) An ellipse shape.
petal({...}) A petal shape.
scaffold({...}) ...
area({...}) ...
line({...}) ...

Coordinate Transforms

Coordinate transforms are used to transform the coordinate system of your data representation.

Usage

coordThe coord method is used to specify the coordinate transform of a layer.

Components

linear({...}) A linear coordinate transform.
polar({...}) A polar coordinate transform.
clock({...}) A clock coordinate transform.
wavy({...}) A wavy coordinate transform.
bipolar({...}) A bipolar coordinate transform.
arcLengthPolar({...}) An arc length polar coordinate transform.

Operators

Graphical operators are used to used to arrange, overlay, and connect visual elements.

Usage

spreadThe spread operator is used to spread the data across the x or y axis.
stackThe stack operator is used to stack the data across the x or y axis.
scatterThe scatter operator is used to scatter the data across the x or y axis.
groupThe group operator is used to group the data by a given key.
deriveThe derive operator is used to derive a new column from the data.