import { createBoard } from '@wixc3/react-board'; import { ResponsiveSankey } from '@nivo/sankey'; import cover from './cover.png'; const data = { nodes: [ { id: 'John', nodeColor: 'hsl(204, 70%, 50%)', }, { id: 'Raoul', nodeColor: 'hsl(19, 70%, 50%)', }, { id: 'Jane', nodeColor: 'hsl(264, 70%, 50%)', }, { id: 'Marcel', nodeColor: 'hsl(306, 70%, 50%)', }, { id: 'Ibrahim', nodeColor: 'hsl(155, 70%, 50%)', }, { id: 'Junko', nodeColor: 'hsl(345, 70%, 50%)', }, ], links: [ { source: 'Ibrahim', target: 'Raoul', value: 121, }, { source: 'Ibrahim', target: 'Marcel', value: 21, }, { source: 'Ibrahim', target: 'Jane', value: 198, }, { source: 'Marcel', target: 'John', value: 130, }, { source: 'Marcel', target: 'Jane', value: 79, }, { source: 'Marcel', target: 'Raoul', value: 124, }, { source: 'Marcel', target: 'Junko', value: 50, }, { source: 'Raoul', target: 'John', value: 6, }, { source: 'Junko', target: 'Raoul', value: 67, }, { source: 'Junko', target: 'Jane', value: 69, }, { source: 'Jane', target: 'Raoul', value: 100, }, ], }; export default createBoard({ name: 'Sankey', Board: () => (
), cover, });