import { strentchedChord } from 'vizart-path';
import 'vizart-path/dist/vizart-path.css';
const options = {
chart: {
margin: { left: 30, right: 30, top: 10, bottom: 30 }
},
data: {
source: { name: 'Color', accessor: 'color' },
target: { name: 'Clarity', accessor: 'clarity' },
link: {name: 'Price', accessor: 'price'}
},
plots: {
emptyPercent: 0.001,
chordPadding: 0.0002
}
};
const _data = ...
const _chart = strentchedChord('#chart', options);
_chart.render(_data);