All examples By author By category About

sjengle

Letter Count Bar Chart

Letter Count Bar Chart

In this demo, we asynchronously load a text file, use JavaScript to count the number of times each letter appears in that file, and generate a bar chart showing the letter count in D3.js.

This is meant to be an introductory demo to expose students to HTML, CSS, JavaScript, D3.js, bl.ocks.org, and blockbuilder.org for the first time.

Videos

Below you can find videos related to this demo. Please note that some content is discussed in-class only.

References

Inspirations

To get started with D3.js, I highly recommend you look at the fantastic tutorials below:

These tutorials give more explanation to how D3 works than you will find in this demo.