Lightweight d3 linegraph class