Skip to main content
100%

Linked Scatter Plot and Bar Chart

✓ Published0🌍 Public
CCurran Kelleher
Last edited Jun 28, 2016
Created on Jun 28, 2016

This linked-view visualization pairs a scatter plot with a bar chart using the Fisher Iris dataset. Brushing a region in the scatter plot selects data points, which are then aggregated and displayed as bars in the adjacent chart, showing the average of a chosen attribute for the selected species. Built with D3.js and the model.js reactive framework, the example uses SVG rendering and a gist-hosted codebase. The bar chart updates dynamically based on user selection.

AI-generated description

Ancient code revived from April 2014, originally posted at github.com/curran/model/examples/d3LinkedViews, revived to demonstrate the concept. Original README follows.

An example of multiple linked views using model.js. This builds on two other examples, the bar chart and scatter plot.

Run the example

Brushing in the scatter plot causes the selected data to be aggregated and plotted in the bar chart.

<!-- Start of SimpleHitCounter Code --> <div align="center"><a href="http://www.simplehitcounter.com" target="_blank"><img src="http://simplehitcounter.com/hit.php?uid=2128590&f=16777215&b=0" border="0" height="18" width="83" alt="web counter"></a></div> <!-- End of SimpleHitCounter Code -->
mit Licensed

Similar vizzes