You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scaleLinear() as a scale factory and the corresponding interface ScaleLinear are parameterized with two generics (Range and Output). By default, i.e. scaleLinear(), these default to number.
To set another type for the range (and or scale output), please use scaleLinear<string>() or similar. The JSDoc comments for the linear scale generator explain the usage for each of the signatures.
Passing string range to
scaleLinear
like so:Argument of type 'string[]' is not assignable to parameter of type 'number[]'.
As seen here, this should be possible:
The text was updated successfully, but these errors were encountered: