import React from "react";
import { HorizontalStackedBar, RowConfig } from "./HorizontalStackedBar.js";
import { ReportDecorator, CardDecorator } from "../storybook/index.js";
import { VerticalSpacer } from "../VerticalSpacer.js";
import { valueFormatter } from "../../helpers/valueFormatter.js";
export default {
component: HorizontalStackedBar,
title: "Components/HorizontalStackedBar",
decorators: [CardDecorator, ReportDecorator],
};
const rows1 = [
[
[2, 10],
[5, 13, 4],
],
];
const rows2 = [[[12]]];
const rows3 = [
[
[2, 10],
[5, 13, 4],
],
[
[2, 12, 5],
[15, 17],
],
];
const rowConfigs1: RowConfig[] = [
{
title: "Network 1",
},
];
const rowConfigs2: RowConfig[] = [
{
title: "Network 2",
},
];
const rowConfigs3: RowConfig[] = [
{
title: "Network 2",
},
{
title: "Network 3",
},
];
const blockGroupNames = ["Fully Protected Area", "Highly Protected Area"];
const blockGroupStyles = [
{ backgroundColor: "#64c2a6" },
{ backgroundColor: "#aadea7" },
{ backgroundColor: "gray" },
];
export const singleBar = () => (
<>
>
);
export const multipleBar = () => (
<>
>
);
export const targetValueFormatter = () => (
<>
`Target - ${valueFormatter(30 / 100, "percent0dig")}`
}
/>
>
);
export const targetOnBottom = () => (
<>
>
);