Reads every scale a plot declares.
Plot throws for a scale the chart does not have rather than returning undefined in every version, so each lookup is guarded individually — one missing color scale must not cost the caller its x and y.
undefined
color
x
y
Any element of the plot.
The scales that exist, keyed by name. Empty when scale is absent.
scale
Reads every scale a plot declares.
Plot throws for a scale the chart does not have rather than returning
undefinedin every version, so each lookup is guarded individually — one missingcolorscale must not cost the caller itsxandy.