Made D3 charting work