D3-based reusable chart library for interactive chart