/js-graph-refactoring

JS refactoring exercise, using a simple line graph example, written in coffeescript and using D3.

Primary LanguageCoffeeScript

Javascript Graph Refactoring

This repository contains a simple line graph example, written in coffeescript and using D3. It's been factored into a single class, but it's still quite monolithic and hard to read. Your assignment is to refactor it for structure and readability.

Instructions

  1. Clone this repository, do not fork it on Github
  2. Make your improvements
  3. Link us to your copy of the repository

Aiming for:

  • Well structured, easy to read code
  • A git commit history that clearly demonstrates your working
  • Any other improvements you would typically do during your work

References

The code used as a starting point for this exercise can be found at:

https://www.sitepoint.com/creating-simple-line-bar-charts-using-d3-js/