linear
The identity coordinate transform: Cartesian x and y, unchanged. This is what a chart uses when you pass no coord, so you only name it explicitly to override an enclosing coordinate space back to Cartesian.
js
gf.chart(seafood, { coord: gf.linear(), axes: true })
.flow(gf.spread({ by: "lake", dir: "x" }))
.mark(gf.rect({ h: "count" }))
.render(root, { w: 400, h: 250 });Signature
ts
linear();Parameters
Identity/Cartesian transform. No options.
No options.
See Also
- polar — angle and radius instead of x and y
