Skip to main content

Function: diffScale()

diffScale(o?): DiffScale

Defined in: packages/sdvplot/src/shots/diff.ts:120

The FG%-vs-league colour: diffScale()(0.05). Light RdBu, dark RdBu, or master's palette; null is nullColor. .plot is the same scale as Observable Plot color options, so Plot.legend({ color: s.plot }) draws the matching key.

Parameters​

o?​

DiffScaleOptions = {}

Returns​

DiffScale

Example​

import { diffScale } from "@sportsdataverse/sdvplot/shots";

diffScale({ theme: "dark" })(0.05);