Lightweight reusable d3 class to use as the basis for linegraphs or barcharts