Closed pgleeson closed 7 years ago
That should do the trick:
nodeColormap
which will store a d3 colormap (described below), which can be set via an optional argument when creating an instance of the widget.force
, chord
, hive
, to take this colour scale into account instead of using a hardcoded one - notice the old TODO
comment regarding this fact...)population_name -> colour
mappingnodeColormap
, as well as a nodeType
callback which will output the parent population for each node (node -> population
mapping).working prototype (for chords so far) in progress at https://github.com/openworm/org.geppetto.frontend/tree/connectivity-colors
@mattearnshaw @tarelli notice that I've suggested constructing the colormap at widget creation time, since ideally we shouldn't have NeuroML specific (1),(2) code in the widget.
These would be better if colours matched:
@borismarin mentioned that this should be relatively easy to do with an update to the method for opening the widget and passing parameters for the population colours as additional arguments