Fundamental visualization techniques as Chiasm plugins. Inspired by:
Goals of this example:
Provide a starting point for developing more advanced visualization components. Directions to go from here include adding axes, labels, legends, tooltips, and brushing.
Show how each visualization technique can be encapsulated as a standalone piece of code, with no shared dependencies between components. This is why, for example, code for margins and styling is duplicated code in many components. These things could conveivably be refactored out into common modules shared between visualization components.
For a more advanced example that adds brushing interaction to a scatter plot, check out Focus + Context Scatter Plots.
Data includes:
barChartData.csv
barChartData.json
Fake data to approximate the Cleveland
& McGill bar charts.lineChartData.json
This data is from William Playfair's famous visualization of England trade
imports and exports from the 1700s. This data was extracted from this
example,
part of the blog post Dimple as htmlwidget.pieChartData.csv
pieChartData.json
Copied from this D3 Pie Chart examplescatterPlotData.csv
scatterPlotData.json
This is a random sample of 25 entries from Fisher's Iris Data Set.choroplethData.json
This is a topoJSON file containing outlines for US States and demographic data. This data is published as a Shapefile as part of US Census: TIGER/LineĀ® with Selected Demographic and Economic Data. Mapshaper was used to simplify lines and generate the topoJSON file.Modified http://curran.github.io/model/cdn/model-v0.2.4.js to a secure url
Modified http://chiasm-project.github.io/chiasm/chiasm-v0.2.0.js to a secure url
Modified http://chiasm-project.github.io/chiasm-component/chiasm-component-v0.2.1.js to a secure url
Modified http://chiasm-project.github.io/chiasm-layout/chiasm-layout-v0.2.2.js to a secure url
Modified http://chiasm-project.github.io/chiasm-links/chiasm-links-v0.2.0.js to a secure url
https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.10.1/lodash.min.js
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js
https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.6/moment.min.js
https://cdnjs.cloudflare.com/ajax/libs/topojson/1.6.19/topojson.min.js
https://curran.github.io/model/cdn/model-v0.2.4.js
https://chiasm-project.github.io/chiasm/chiasm-v0.2.0.js
https://chiasm-project.github.io/chiasm-component/chiasm-component-v0.2.1.js
https://chiasm-project.github.io/chiasm-layout/chiasm-layout-v0.2.2.js
https://chiasm-project.github.io/chiasm-links/chiasm-links-v0.2.0.js