D3-based reusable chart library