import { jsx as _jsx } from "react/jsx-runtime";
import AreaStacked from "./index";
import Data from "./mock-data2";
export default {
    title: "Graphs/Staked area",
    component: AreaStacked,
};
const Template = (args) => _jsx(AreaStacked, { ...args });
const preparedData = Data.slice(0, 195000).reduce((acc, el) => {
    acc.x.push(el[0]);
    acc.y[0].data.push(Number(el[1]
        .borrowerTotal));
    acc.y[1].data.push(Number(el[1]
        .bailsmanTotal));
    return acc;
}, {
    x: [],
    y: [
        { name: "Borrowers", data: [] },
        { name: "Bailsmen", data: [] },
    ],
});
export const Basic = Template.bind({});
Basic.args = {
    xSeries: preparedData.x,
    ySeries: preparedData.y,
};
//# sourceMappingURL=index.stories.js.map