new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

D3 · all subjects

d3-hierarchy/partition

8 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

d3.partition configuration

Partition layout configuration methods: partition.size (set layout size), partition.round (set whether output coordinates are rounded), partition.padding (set padding).

partition() constructor

partition() creates a new partition layout with default settings.

partition layout properties assigned to nodes

The partition layout assigns the following properties on the root node and its descendants: node.x0 (left edge of rectangle), node.y0 (top edge of rectangle), node.x1 (right edge of rectangle), node.y1 (bottom edge of rectangle).

partition layout requires sum() and sort() calls

Before passing a hierarchy to the partition layout, you must call root.sum to compute the values for each node. You should also call root.sort to order the hierarchy before computing the layout.

partition.size() method

partition.size(size) sets the partition layout's size to a two-element array [width, height] and returns the partition layout. Called without arguments, it returns the current size, which defaults to [1, 1].

partition.round() method

partition.round(round) enables or disables rounding according to the given boolean and returns the partition layout. Called without arguments, it returns the current rounding state, which defaults to false.

partition.padding() method

partition.padding(padding) sets the padding to the specified number and returns the partition layout. Called without arguments, it returns the current padding, which defaults to zero. The padding is used to separate a node's adjacent children.

partition layout definition

The partition layout produces adjacency diagrams, which are space-filling variants of node-link tree diagrams. Rather than drawing links between parent and child nodes, nodes are drawn as solid areas (either arcs or rectangles), and their placement relative to other nodes reveals their position in the hierarchy. The size of the nodes encodes a quantitative dimension.

Give your agent this brain