A real-time interactive cryptocurrency bubble chart visualization built with D3.js and the CoinGecko API. Features interactive bubbles, market data, and an AI assistant.
- Real-time Data: Live cryptocurrency data from CoinGecko API
- Interactive Bubbles: Draggable, zoomable bubble chart with 200+ tokens
- Market Overview: Global market statistics and top movers
- AI Assistant: Built-in chatbot for market insights and analysis
- Responsive Design: Works on desktop, tablet, and mobile
- Dark Theme: Modern glass morphism UI design
- Multiple Timeframes: 1h, 4h, 24h, 7d, 30d, 1y, All Time
- Auto-refresh: Configurable data refresh intervals
- Frontend: HTML5, CSS3, JavaScript (ES6+)
- Visualization: D3.js v7
- Data Source: CoinGecko API
- Styling: Custom CSS with glass morphism effects
- AI: Custom JavaScript-based conversational AI
-
Clone the repository:
git clone https://github.com/Dairus01/crypto-bubble-chart.git cd crypto-bubble-chart -
Start the development server:
python -m http.server 8000 # or npx serve .
-
Open your browser: Navigate to
http://localhost:8000
The app works without an API key using CoinGecko's public API. For higher rate limits:
- Get a free API key from CoinGecko Pro
- Add it to the API Key field in the app
- Token Limit: Adjust the "Max Tokens" slider (currently 200)
- Time Periods: Change the time period dropdown options
- Auto-refresh: Set refresh intervals in the Auto Refresh dropdown
- View Options: Toggle labels, icons, and draggable bubbles
crypto-bubble-chart/
├── index.html # Main HTML file
├── styles.css # All styling and responsive design
├── script.js # Main application logic and D3.js
├── demo-data.js # Sample data for fallback
├── package.json # Project metadata
├── README.md # This file
- Chrome 60+
- Firefox 55+
- Safari 12+
- Edge 79+
- Free API: 50 calls/minute
- Pro API: 1000 calls/minute (with API key)
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
MIT License - feel free to use this project for personal or commercial purposes.
If you encounter any issues:
- Check the browser console for errors
- Verify your internet connection
- Try refreshing the page
- Check if CoinGecko API is accessible
Live Demo: https://crypto-bubble-chart.vercel.app/