Skip to content

Commit

Permalink
last sandbox fix
Browse files Browse the repository at this point in the history
  • Loading branch information
holtzy committed Jun 13, 2023
1 parent 08b201c commit c87a60b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion viz/ChordDiagramBasic/ChordDiagram.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const ChordDiagram = ({
// Compute the chord details: angle of nodes and connections
//
const chordGenerator = d3
.chordDirected()
.chord()
.padAngle(0.05) // padding between entities (black arc)
.sortSubgroups(d3.descending);
const chord = chordGenerator(data);
Expand Down
7 changes: 6 additions & 1 deletion viz/ChordDiagramBasic/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ import { ChordDiagram } from "./ChordDiagram";

const rootElement = document.getElementById("root");
ReactDOM.render(
<ChordDiagram data={data} width={400} height={400} />,
<ChordDiagram
data={data}
width={400}
height={400}
groups={["Barcelona", "Paris", "Dakar", "NY"]}
/>,
rootElement
);

0 comments on commit c87a60b

Please sign in to comment.