function slopeChart(
data,
{
x,
y,
z = () => "",
color = main.grey["1000"],
stroke = main.blue["600"],
strokeWidth = 1.5,
haloWidth = 6,
yFormat,
...rest
} = {}
) {
const X = typeof x === "string" ? (d) => d[x] : x;
const Y = typeof y === "string" ? (d) => d[y] : y;
const Z = typeof z === "string" ? (d) => d[z] : z;
return d3SlopeChart(data, {
x: X,
y: Y,
z: Z,
color,
yFormat,
stroke,
strokeWidth,
haloWidth,
...rest
});
}