News for hackers. Stuff that matters.
Re:Legends in D3 by bane on Friday July 17, 2015 @08:48AM (#9902440)
A team I work with built a great internal tool with D3 and there were a few things that they did that really bumped it up to the next level:

- The data was the interface. Things that they used d3 to show, were also the interaction elements which could be clicked to focus-in on subsets of the same data. It was almost fractal, but also immediately clear and simple to use. There were no control bars or sliders or really buttons. Anybody who could use google maps could use this and it took about 10 seconds to show somebody how it worked before they could operate it at a high-level.

- The legend was not just a visual aid, but had interactive components in the tool:

1) Hovering over an element in the legend caused all the corresponding elements in the display to highlight so you could see where they were in a complex display. (and visa-versa, hovering over an element in the main display caused that element in the legend to highlight)

2) Clicking an element in the legend caused it to filter on-off, allowing various unimportant parts of the display to be eliminated.

These three things changed it from just a static picture into a useful analytic tool and getting more value out of the legend by turning it from just a picture into a fully interactive element felt so obvious in retrospect that legends I see now that are just a legend feel incomplete.

Re:Legends in D3 by hgylfason on Friday July 17, 2015 @09:15AM (#9902542)
This really reminds me of toggling legend in Rickshaw. http://code.shutterstock.com/rickshaw/examples/extensions.ht...
Re:Legends in D3 by bane on Friday July 17, 2015 @10:12AM (#9902786)
Yeah, the legend works very similarly in the one I saw as well.
Re:Legends in D3 by huac on Friday July 17, 2015 @01:46PM (#9904025)
A d3 wrapper that has 'legend toggle' functionality built in is [c3.js](http://c3js.org/samples/chart_bar.html)

I agree that this is an important tool to have, that many other charting libraries have (thinking of HighCharts, Rickshaw, ...)

Re:Legends in D3 by dnprock on Friday July 17, 2015 @01:33PM (#9903892)
It's fairly easy to do with a little bit of additional d3 code. It'd be nice for the lib to support it, however.

https://vida.io/documents/jspBB83bm6EvEYE3n