4

I'd like to modify d3's Chord Diagram:

enter image description here

I would like to allow values to be updated. This jsfiddle contains my code so far, but I'm stuck as the ticks and their labels don't seem to update (click on the link to update with new matrix). The rest of it seems to work fine (I think...).

I think the problem is that the ticks are within a tick group. I can't get my head around how to remove them or the entire tick group (see for the '???' in the code).

ticks.remove();

and/or

tickGroups.remove();

don't result in the expected outcome.

VividD
  • 10,456
  • 6
  • 64
  • 111
orange
  • 7,755
  • 14
  • 75
  • 139
  • This seems to be a tough one, or all the d3 guns are enjoying the summer ;-). Let me know if I can do anything to make the question more comprehendible. – orange Jun 23 '13 at 23:34
  • Have you seen [this](http://exposedata.com/tutorial/chord/latest.html)? – Lars Kotthoff Jun 24 '13 at 17:48
  • It does not look at first blush like your tick values are changing with the click? I guess I am not sure what it is supposed to do? Maybe you can update the example to actually pass in a set of hard coded tick values? In the meantime this is worth a detailed read-through and might help: http://bost.ocks.org/mike/selection/ – Superboggly Jun 24 '13 at 22:51
  • @Lars: No I didn't know this before. Thanks for this link. I guess I go with an easier version of deleting the scale rather than moving it. – orange Jun 25 '13 at 11:01
  • @Superboggly: The data is changed (and static) as you can see by the chords moving, so I would expect the same for the scale... – orange Jun 25 '13 at 11:05

0 Answers0