Skip to main content
100%

Chiasm Charts Example

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

This example demonstrates the Chiasm Charts library’s ability to dynamically adjust scale types based on input data, such as switching between linear and ordinal scales in scatter plots. Axis labels are positioned relative to the outer container, allowing interactive margin adjustments to prevent overlapping tick labels. The bar chart includes configurable color options and a new background color mixin. The visualization is rendered with SVG and supports animation, as shown in the provided bar chart and Iris dataset examples.

AI-generated description

This release of chiasm-charts adds dynamic scale types chat change based on the input data. This allows, for example, ordinal scales on a scatter plot.

Also, the axis labels are now relative to the outer box, rather than relative to the margin. This allows the user to interactively adjust the margin such that axis tick labels do not overlap with the axis labels.

Color options have also been included in the bar chart, and a new "backgroundColor" mixin has been introduced.

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

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
76% match