Skip to main content
100%

Example

✓ Published0🌍 Public
CCurran Kelleher
Last edited Dec 4, 2015
Created on Oct 10, 2015

This example demonstrates how to use Chiasm and reactive mixins to compose interactive bar chart and line chart visualizations side by side on a single page. The bar chart renders categorical data from a CSV file, mapping the `name` column to the x-axis and the `amount` column to the y-axis, while the line chart plots time-series temperature data over time. Both visualizations are built using reusable mixins for axes, scales, and labels, and they update dynamically in response to changes in their data bindings. The SVG-based rendering animates transitions when data or layout properties change, showcasing the power of reactive programming in data visualization.

AI-generated description

This is one example from the screencast Introduction to Chiasm. It shows how you can use "reactive mixins" to encapsulate chunks of dynamic behavior in data visualizations, and use Chiasm to put multiple visualizations on the same page.

Check out the resize behavior.

This example was the starting point for chiasm-charts, a collection of reactive mixins and reusable visualizations including bar chart, histogram, scatter plot, line chart, and box plot.

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

Similar vizzes

Loading thumbnail…

Magic Bar Chart

This example demonstrates a Magic Bar Chart, a reusable visualization component built with Chiasm and bundled with Browserify for production use. The chart animates the transition of bar positions and heights based on changing data, rendering smooth, dynamic updates with SVG. The visualization reads from the `adult.csv` dataset, which contains demographic records including age, education, occupation, and income category. The chart likely groups or aggregates this data by income category and animates between different categorical groupings (such as sex, race, or workclass) using Chiasm's reactive dataflow. The SVG-based rendering and animation make the bar chart transitions fluid, providing an interactive and engaging way to explore the dataset. The example demonstrates how Chiasm can be used to build a reusable, production-ready data visualization component.# Magic Bar Chart This example demonstrates a reusable bar chart built with Chiasm and bundled using Browserify. It visualizes the UCI Adult dataset, showing income distributions across demographic categories. The chart uses animated SVG transitions to smoothly morph between different data groupings, making it easy to compare income patterns across attributes like education, occupation, and native country. The visualization showcases how Chiasm's reactive dataflow architecture enables clean, maintainable visualization code in production environments. The "magic" refers to the chart's ability to automatically update and animate when the underlying data or configuration changes. ---

CCurran Kelleher
77% match