histInternal = (data) => {
const mark = Plot.rectY(
data,
Plot.binX({ y: "count" }, { x: "flipper_length_mm" })
);
const _render = mark.render;
mark.render = function (index, scales, values) {
mutable innerValues = values;
console.log(values);
return _render.apply(this, arguments);
};
return mark.plot();
}