Skip to content

This project is a fully dynamic and interactive candlestick chart built with D3.js, designed to replicate the look and functionality of TradingView. The chart supports real-time updates, zooming, panning, and smooth animations while maintaining a constant number of visible candlesticks (30) that dynamically adapt to the zoom level.

Notifications You must be signed in to change notification settings

UDynamic/TradingView-chart-replica

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

πŸ“ˆ Dynamic TradingView-Style Candlestick Chart with D3.js

Candlestick Chart

πŸ“ Overview

This project is a fully interactive candlestick chart built with D3.js, designed to mimic the behavior of TradingView charts. It features real-time updates, smooth animations, and a dynamic zooming experience, making it an ideal starting point for anyone interested in financial data visualization.

The chart generates random market data, ensuring open-close consistency, and dynamically adapts the x-axis time range based on zoom level. The number of candles displayed remains fixed at 30, but zooming reveals more granular timeframes (e.g., from 4-hour candles down to 1-minute candles).


🎯 Features

βœ… Dynamic zooming & panning – Zoom out to see 4-hour candles, zoom in for minutely details
βœ… Smooth leftward scrolling – New candles push old ones left instead of reloading

πŸ”₯ Future Enhancements

πŸ”Ή Live API Data β†’ Connect to a real stock market API (e.g., Binance, Alpha Vantage).

πŸ”Ή Indicators β†’ Add moving averages, RSI, Bollinger Bands for analysis.

πŸ”Ή Custom Timeframes β†’ Allow users to select 1m, 5m, 15m, 1H views.

About

This project is a fully dynamic and interactive candlestick chart built with D3.js, designed to replicate the look and functionality of TradingView. The chart supports real-time updates, zooming, panning, and smooth animations while maintaining a constant number of visible candlesticks (30) that dynamically adapt to the zoom level.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published