Skip to content
This repository was archived by the owner on Jan 5, 2021. It is now read-only.
Deanna Bosschert edited this page Nov 22, 2019 · 3 revisions

Vrijdag 22 november

To do:

  • Uitzoeken hoe uiteindelijk de size/values van de parents te bepalen op basis van de sum van diens children

node.sum(value) · Source, Examples

Evaluates the specified value function for this node and each descendant in post-order traversal, and returns this node. The node.value property of each node is set to the numeric value returned by the specified function plus the combined value of all children. The function is passed the node’s data, and must return a non-negative number. The value accessor is evaluated for node and every descendant, including internal nodes; if you only want leaf nodes to have internal value, then return zero for any node with children. For example, as an alternative to node.count:

  • De twee datasets combinen --> laad beide in middels een aparte functie --> maak van beide een array (d3.stratify) --> combine arrays

  • De size bepalen op basis van diens children

  • Check repo van Eyob + Jennifer om te zien hoe zij met de data inladen omgaan

Clone this wiki locally