API Reference
The GoFish API for creating charts and visualizations.
By combining operators and marks, you can create complex and automatic chart layouts.
How To
- Create a chart Build charts using Chart, flow, mark, and render.
- Create a glyph Compose custom shapes with Layer.
- Pick a layout operator Choose between spread, stack, and scatter.
- Use selection Connect marks across charts for overlays and annotations.
Core
- chart Creates a ChartBuilder for building charts.
- flow Applies operators to the data pipeline.
- mark Sets the visual mark for rendering.
- render Renders the chart into a DOM element.
Marks
- rect Draws a rectangle for each data item.
- circle Draws a circle for each data item.
- ellipse Draws an ellipse for each data item.
- line Connects data points with a line.
- area Fills the area between data points.
- scaffold Creates invisible positioning guides.
- ref References another node by name.
Operators
- spread Lays out groups along an axis.
- stack Stacks items edge-to-edge.
- scatter Positions groups by mean x/y.
- layer Overlays children without offset.
- derive Transforms data in the pipeline.
- log Logs data for debugging.
Selection
- select Selects named layer nodes.
