Skip to content

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

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.

Coordinates

  • polar Polar coordinate transform.
  • clock Clock-oriented polar coordinates.