Violin Plot + Box Plot v3
An implementation of a reusable responsive distribution chart. Based on the concept outlined in Mike Bostocks blog post Towards Reusable Charts.
See this live on bl.ocks.org here.
Features:
- Responsive design, chart size adjusts with screen <Open in new window to see example.>
- Easily styled in CSS
- Modular design supporting 3 types of charts
- Box Plot
- Notched Box Plot
- Violin Plot
- Beeswarm Plot
- Bean Plot
- Trendlines
- Each chart type supports multiple options and styles such as
- Box width
- Show/Hide any component (median line, mean line, whiskers outliers, etc...)
- Scatter Outliers
- Notch style (traditional angled vs 90 degree cutouts)
- Violin resolution and interpolation
- Scatter style (random vs organized beeswarm)
Updated in V3:
- Support for clamping the ViolinPlot or forcing it to extend beyond the normal range to create a closed Violin
- New option to adjust the number of y axis ticks
- Now uses Kernel Density Estimation intstead of histogram interpolation for more accurate violin plots.
Previous version: Reusable Violin + Box Plot V2
forked from asielen's block: Violin Plot + Box Plot v3
forked from anonymous's block: Violin Plot + Box Plot v3