How to create interactive charts and graphs with JavaScript?