Skip to content

Instantly share code, notes, and snippets.

View ulyngs's full-sized avatar

Ulrik Lyngs ulyngs

View GitHub Profile
@ulyngs
ulyngs / README.md
Last active November 10, 2017 17:03
Grouped horizontal box plot with data points and info on hover

An implementation of a grouped horisontal box plot, with drawing of data points and data shown when hovering over a point.

The plot is easily customizable by adjusting arguments to the main functions drawBoxes, drawPoints, and drawCategoryLabels. See the documentation above each function.

This example (and the mocked up data) is meant to look a bit like plotly's example of a 'Fully Styled Box Plot'.

I started from Matt Brehmer's simple box plot w/ hover and used d3noob's implementation of tooltips on hover.