In the previous article, we managed to get data displayed on a time-based chart. Though interesting, this chart is a bit monolithic and quite hard to reuse. The chart class is far from respecting the single responsibility principle, as it fetches the data, renders these, manipulates axes, etc. This article will focus on refactoring the code and somehow improve the lookout of the chart.
All posts in category Framework
Posted by huguesstefanski on October 4, 2015
In the previous article, we ended up with a nice axis drawn using d3, as a starting point to a fully working chart. We will continue to build on what we did previously.
Posted by huguesstefanski on June 28, 2015
Through this series of articles, I will try to get you:
- understanding how D3 works and how easy it can be to create simple things
- seeing an added value in using TypeScript
- creating a basic build process that will help your development
You can find the completed code for this article here.
Updated on 2016-04-12 to use the new D3 types (generics).
Posted by huguesstefanski on June 7, 2015