I have a script, that works fine and create a chord diagram I need.
But now I want to create the same .svg file on another div but with different matrix.
Should I duplicate the same script for a new svg, or I can do in more efficient way?
You can find my code here.
Now my .Js script use drawChordWithMatrix(matrix_T1_T2) to show chord on div with id chart
What should I do to run drawChordWithMatrix(matrix_T2_T3) on id chart1
divandsvg. I don't think, that creating a div with another id and creating a new svg for this id is good approach. I think that my script should execute two functiondrawChordWithMatrix(matrix_T1_T2),drawChordWithMatrix(matrix_T2_T3).