htm-community / building-htm-systems

Supporting code for Building HTM Systems document.
GNU Affero General Public License v3.0
29 stars 12 forks source link

Add legend to potential pools diagram #38

Open rhyolight opened 5 years ago

rhyolight commented 5 years ago

Use D3js to draw a legend underneath the input space.

Screen Shot 2019-05-28 at 12 18 05 PM

Screen Shot 2019-06-04 at 3 17 33 PM
newyork167 commented 4 years ago

image

image

Were you wanting it more like the first image where it is at the bottom (having the extra space under the grid on the left) or did you want to go with something more like the bottom image with the legend to the right (using the empty space that is there)? I wasn't sure if you were wanting to add more information below or to the side or had any preferences.

rhyolight commented 4 years ago

The graphics have a hard width that I cannot exceed, so please put at the bottom, making the diagram taller. Thanks!

Tyfoods commented 4 years ago

Doesn't look like this got finished/added, I made a "Diagram Legends" component. It takes in an array of objects, where each object describes the labels you'd like configured. In this basic case it just takes "label", "fill color", "marker", "markerFillColor".

image

image