Scatter

Scatterplots place each observation at two values, to show how one measure moves with another and where clusters and outliers sit.

LLMs

Trend line

Pair dot with linearRegressionY on the same rows to draw a least-squares trend line through every car's power and fuel economy.

Bubble

Set r to a field and give rScale a square-root scale, so each penguin's body mass sets its bubble's area while color marks its species.

Many points

Render through CanvasChart to draw hundreds of sized, colored dots on a canvas instead of one SVG element per point.

Log scale

Pass a scaleLog instance with a fixed domain to the x scale, so sizes from a few hundred to tens of thousands share one readable axis.

Connected

Join the points in time order with lineY, then add arrow marks for direction and text labels every five years.

Lag plot

Use rollingWindow with a first reducer to pair each close with the previous day's, plotted against a dashed line of equal values.

Marginal histograms

Arrange a scatterplot and two binX and binY histograms in a viewGrid, with share lining each histogram up with its axis.

Framed

Set guides to false and add a rounded frame mark to set the plot area apart when the chart has no axes or gridlines.

Parallel coordinates

Use fold and normalize to put four events with different units on one 0 to 100 scale, with a line per country across them.

Small multiples

Wrap the marks in facet with columns set to 4 to draw one scatterplot per set on shared, fixed x and y domains.