Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
};
cartesian.yAxis = (...args) => {
if (!args.length) {
return yAxis;
}
yAxis = args[0];
return cartesian;
};
const scaleExclusions = exclude(
/range\w*/, // the scale range is set via the component layout
/tickFormat/ // use axis.tickFormat instead (only present on linear scales)
);
rebindAll(cartesian, xScale, scaleExclusions, prefix("x"));
rebindAll(cartesian, yScale, scaleExclusions, prefix("y"));
rebindAll(cartesian, xAxisStore, prefix("x"));
rebindAll(cartesian, yAxisStore, prefix("y"));
return cartesian;
};
return cartesian;
};
cartesian.yAxis = (...args) => {
if (!args.length) {
return yAxis;
}
yAxis = args[0];
return cartesian;
};
const scaleExclusions = exclude(
/range\w*/, // the scale range is set via the component layout
/tickFormat/ // use axis.tickFormat instead (only present on linear scales)
);
rebindAll(cartesian, xScale, scaleExclusions, prefix("x"));
rebindAll(cartesian, yScale, scaleExclusions, prefix("y"));
rebindAll(cartesian, xAxisStore, prefix("x"));
rebindAll(cartesian, yAxisStore, prefix("y"));
return cartesian;
};
cartesian.yAxis = (...args) => {
if (!args.length) {
return yAxis;
}
yAxis = args[0];
return cartesian;
};
const scaleExclusions = exclude(
/range\w*/, // the scale range is set via the component layout
/tickFormat/ // use axis.tickFormat instead (only present on linear scales)
);
rebindAll(cartesian, xScale, scaleExclusions, prefix("x"));
rebindAll(cartesian, yScale, scaleExclusions, prefix("y"));
rebindAll(cartesian, xAxisStore, prefix("x"));
rebindAll(cartesian, yAxisStore, prefix("y"));
return cartesian;
};
xAxis = args[0];
return cartesian;
};
cartesian.yAxis = (...args) => {
if (!args.length) {
return yAxis;
}
yAxis = args[0];
return cartesian;
};
const scaleExclusions = exclude(
/range\w*/, // the scale range is set via the component layout
/tickFormat/ // use axis.tickFormat instead (only present on linear scales)
);
rebindAll(cartesian, xScale, scaleExclusions, prefix("x"));
rebindAll(cartesian, yScale, scaleExclusions, prefix("y"));
rebindAll(cartesian, xAxisStore, prefix("x"));
rebindAll(cartesian, yAxisStore, prefix("y"));
return cartesian;
};
if (!args.length) {
return yDecorate;
}
yDecorate = args[0];
return instance;
};
instance.xDecorate = (...args) => {
if (!args.length) {
return xDecorate;
}
xDecorate = args[0];
return instance;
};
rebindAll(instance, xTicks, prefix("x"));
rebindAll(instance, yTicks, prefix("y"));
rebind(instance, lineData, "context");
return instance;
};
return yDecorate;
}
yDecorate = args[0];
return instance;
};
instance.xDecorate = (...args) => {
if (!args.length) {
return xDecorate;
}
xDecorate = args[0];
return instance;
};
rebindAll(instance, xTicks, prefix("x"));
rebindAll(instance, yTicks, prefix("y"));
rebind(instance, lineData, "context");
return instance;
};