All examples By author By category About

chunheisiu

CS360_Lab2_Letter Count Bar Chart (d3v4)

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 v4.

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.

References

This is based off the following example:

</sjengle/e8c0d6abc0a8d52d4b11>

It has been updated for D3.js v4 based on the following updated bar chart example:

https://bl.ocks.org/mbostock/3885304

Please see the original examples for videos and additional references.

forked from sjengle's block: Letter Count Bar Chart (d3v4)

forked from anonymous's block: Letter Count Bar Chart (d3v4)