Skip to main content
100%

Bootstrap Chiasm Example

✓ Published0🌍 Public
CCurran Kelleher
Last edited Nov 20, 2015
Created on Nov 20, 2015

This example demonstrates how to embed multiple interactive visualizations—a bar chart, line chart, scatter plot, and pie chart—into a webpage whose layout is managed by Bootstrap’s grid system. Each chart is wrapped in its own Chiasm component, instantiated from the `barChart.js`, `lineChart.js`, and other visualization modules, and injected into the corresponding DIVs defined in `index.html`. The page uses D3.js for rendering and animation, with Chiasm managing reactive data flow so that updates to shared datasets propagate automatically to all charts. The Bootstrap grid provides a responsive layout: three visualizations sit side-by-side in one row, with a full-width line chart below. The example demonstrates how to integrate multiple Chiasm instances with an external CSS framework, combining the strengths of Bootstrap’s layout with D3’s data-driven rendering.

AI-generated description

This example shows how you can use the multiple instances of the Chiasm layout plugin to inject visualizations into existing elements on the page. In this case, visualizations are injected into DIVs whose layout is managed by Bootstrap Grid System.

Draws from these previous blocks:

  • <a href='http://bl.ocks.org/curran/0ea0689476f9dbd41979'>Bootstrap Grid Example</a>
  • <a href='http://bl.ocks.org/curran/3cc1a2a289dddbd64688'>Fundamental Visualizations</a>
  • <a href='http://bl.ocks.org/curran/5e3c1bed7c9cdd2b431c'>Reactive Mixins for Visualizations</a>
MIT Licensed

Similar vizzes