Candlestick Chart

Prices over time as candles or OHLC bars — open, high, low and close of each period with the volume under them. Drawn as SVG by the component, rendered on the server and themed by the design tokens.

Part of @tectra-ng/charts (npm install @tectra-ng/charts, also included in tectra-ng).

Features11APIThemingAccessibility

Basic

Rising days in green, falling days in red, the volume along the bottom on its own scale. Weekends leave no gaps. Hover a day for its open, high, low, close and volume.

Arrow keys move between values
Share price, September and October. Candlestick chart, 1 series, 40 values, from 120.7 to 144.47
CategoryOpenHighLowCloseVolume
Sep 1, 2026128130.4127.36129.62.6K
Sep 2, 2026129.6134.61127.69132.223.6K
Sep 3, 2026132.22136.82131.25135.614.3K
Sep 4, 2026135.61141.63133.78139.354.7K
Sep 7, 2026139.35143.13137.81141.213.1K
Sep 8, 2026141.21143.57139.78141.782K
Sep 9, 2026141.78143.95139.31141.052.2K
Sep 10, 2026141.05142.48138.07139.223.2K
Sep 11, 2026139.22141.56134.8136.673.9K
Sep 14, 2026136.67137.64133.93134.713.4K
Sep 15, 2026134.71137.06131.71133.592.2K
Sep 16, 2026133.59134.96132.24133.341.5K
Sep 17, 2026133.34135.99131.57133.781.7K
Sep 18, 2026133.78136.32132.39134.582.1K
Sep 21, 2026134.58136.23132.7134.021.9K
Sep 22, 2026134.02136.28130.7132.52.8K
Sep 23, 2026132.5133.77129.06130.083.7K
Sep 24, 2026130.08132.46125.11127.014.3K
Sep 25, 2026127.01127.88123.02123.714.6K
Sep 28, 2026123.71126.01120.7122.542.7K
Sep 29, 2026122.54124.23121.31122.71.4K
Sep 30, 2026122.7126.28121.01124.162.6K
Oct 1, 2026124.16128.56122.66126.693.6K
Oct 2, 2026126.69131.73125.22129.894.2K
Oct 5, 2026129.89134.56128.03132.243.6K
Oct 6, 2026132.24134.75131.36133.652.8K
Oct 7, 2026133.65136.49131.73134.091.9K
Oct 8, 2026134.09135133.02133.751.9K
Oct 9, 2026133.75136.12131.06132.962.3K
Oct 12, 2026132.96134.94131.61133.261.5K
Oct 13, 2026133.26136.44131.65134.432.3K
Oct 14, 2026134.43138.41132.83136.413.1K
Oct 15, 2026136.41140.65135.05138.953.6K
Oct 16, 2026138.95143.87137.17141.643.8K
Oct 19, 2026141.64143140.9142.071.9K
Oct 20, 2026142.07144.47139.28141.22.3K
Oct 21, 2026141.2142.28138.2139.073.5K
Oct 22, 2026139.07141.4134.08135.944.4K
Oct 23, 2026135.94137.41131.06132.245K
Oct 26, 2026132.24134.13128.24129.753.5K

Ohlc

variant="ohlc" draws a bar with a tick on the left for the open and on the right for the close. showVolume turns the volume off.

Arrow keys move between values
Index, OHLC bars. Candlestick chart, 1 series, 30 values, from 4,197.33 to 4,224.02
CategoryOpenHighLowClose
Sep 1, 20264,2104,216.024,208.174,213.74
Sep 2, 20264,213.744,218.914,212.474,217.32
Sep 3, 20264,217.324,222.324,215.664,220.24
Sep 4, 20264,220.244,224.024,218.74,222.1
Sep 7, 20264,222.14,223.534,219.124,220.27
Sep 8, 20264,220.274,222.614,215.854,217.72
Sep 9, 20264,217.724,218.764,214.094,214.92
Sep 10, 20264,214.924,217.324,210.424,212.34
Sep 11, 20264,212.344,213.314,209.64,210.38
Sep 14, 20264,210.384,213.034,208.614,210.82
Sep 15, 20264,210.824,213.364,209.434,211.62
Sep 16, 20264,211.624,214.324,210.054,212.35
Sep 17, 20264,212.354,214.644,210.724,212.6
Sep 18, 20264,212.64,214.254,210.724,212.04
Sep 21, 20264,212.044,214.424,207.074,208.97
Sep 22, 20264,208.974,209.844,204.984,205.67
Sep 23, 20264,205.674,208.064,200.724,202.63
Sep 24, 20264,202.634,203.784,199.424,200.34
Sep 25, 20264,200.344,202.644,197.334,199.17
Sep 28, 20264,199.174,203.574,197.674,201.7
Sep 29, 20264,201.74,206.744,200.234,204.9
Sep 30, 20264,204.94,210.424,203.194,208.28
Oct 1, 20264,208.284,212.844,207.084,211.35
Oct 2, 20264,211.354,216.024,209.494,213.7
Oct 5, 20264,213.74,214.614,212.634,213.36
Oct 6, 20264,213.364,215.734,210.674,212.57
Oct 7, 20264,212.574,213.884,210.714,211.76
Oct 8, 20264,211.764,2144,209.564,211.35
Oct 9, 20264,211.354,213.334,2104,211.65
Oct 12, 20264,211.654,215.894,210.294,214.19

Short range

Few periods get wide candles. The price axis moves to the left with yAxisPosition; valueFormat formats the prices.

Arrow keys move between values
Last two weeks. Candlestick chart, 1 series, 10 values, from 302 to 315
CategoryOpenHighLowCloseVolume
Sep 1, 20263123143113131.7K
Sep 2, 20263133153103121.9K
Sep 3, 20263123133093102.9K
Sep 4, 20263103123063073.6K
Sep 7, 20263073083053063.2K
Sep 8, 20263063083033042.5K
Sep 9, 20263043063033041.7K
Sep 10, 20263043073023051.9K
Sep 11, 20263053073033052.3K
Sep 14, 20263053073033052.2K

Categories

x may be any label, not only a date — here the planned, highest, lowest and final estimate of each sprint.

Arrow keys move between values
Weekly sprint estimates. Candlestick chart, 1 series, 5 values, from 18 to 41
CategoryOpenHighLowClose
Sprint 121341830
Sprint 230322224
Sprint 324362335
Sprint 435412938
Sprint 538392628

Events

candleClick reports the clicked period with its formatted date and the candle.

Arrow keys move between values
Click a part. Candlestick chart, 1 series, 4 values, from 39 to 46
CategoryOpenHighLowCloseVolume
Oct 5, 202641444043900
Oct 6, 202643464242.51.4K
Oct 7, 202642.5433939.51.8K
Oct 8, 202639.5423941.81.1K

Click the chart.

Loading and empty

loading keeps the size with a skeleton; empty data shows "No data".

No data

Live

New data redraws in place — candles and volume follow.

Arrow keys move between values
Shuffled data. Candlestick chart, 1 series, 20 values, from 43.9 to 62.1
CategoryOpenHighLowCloseVolume
Oct 1, 20265053.248.952800
Oct 2, 202653.755.452.654.2853
Oct 3, 202656.257.453.454.5906
Oct 4, 202656.757.954.255.3959
Oct 5, 202655.357.454.256.21K
Oct 6, 202652.355.551.254.31.1K
Oct 7, 202649.150.54849.31.1K
Oct 8, 202646.948.143.9451.2K
Oct 9, 202646.447.644.245.31.2K
Oct 10, 202648.150.64749.41.3K
Oct 11, 202651.354.350.253.11.3K
Oct 12, 202655.256.453.754.81.4K
Oct 13, 202658.459.655.356.41.4K
Oct 14, 202659.961.158.159.21.5K
Oct 15, 202659.362.158.260.91.5K
Oct 16, 20265759.855.958.61.6K
Oct 17, 202653.85551.9531.6K
Oct 18, 202650.952.147.848.9801
Oct 19, 202649.550.748.149.2854
Oct 20, 202650.253.249.152907

Accessibility

Tab to the chart: ←/→ walk the days and each one is announced with its four prices; Home / End jump to the ends. Screen readers also get a summary with the price range and a hidden table.

Arrow keys move between values
Share price. Candlestick chart, 1 series, 12 values, from 45.69 to 65.04
CategoryOpenHighLowCloseVolume
Sep 1, 20266465.0460.3761.23.7K
Sep 2, 202661.263.656.758.623.6K
Sep 3, 202658.6259.5955.8856.663K
Sep 4, 202656.6659.0153.6655.542.3K
Sep 7, 202655.5458.0854.1556.342.1K
Sep 8, 202656.3459.0454.7757.072.1K
Sep 9, 202657.0759.3655.4457.321.7K
Sep 10, 202657.3258.9755.4456.762K
Sep 11, 202656.7659.0253.4455.242.9K
Sep 14, 202655.2456.1151.2551.944.7K
Sep 15, 202651.9454.3346.9948.94K
Sep 16, 202648.950.0545.6946.613.3K

Design tokens

dt sets the up and down colours, the body width and radius, the wick width and the volume height and opacity of one chart.

Arrow keys move between values
Custom colours. Candlestick chart, 1 series, 30 values, from 72.05 to 95.52
CategoryOpenHighLowCloseVolume
Sep 1, 2026889386.3490.923.8K
Sep 2, 202690.9294.789.3892.782.9K
Sep 3, 202692.7895.1491.3593.351.8K
Sep 4, 202693.3595.5290.8892.622K
Sep 7, 202692.6293.6688.9989.823.9K
Sep 8, 202689.8292.2285.3287.243.8K
Sep 9, 202687.2488.2184.585.283.3K
Sep 10, 202685.2887.6382.2884.162.5K
Sep 11, 202684.1685.5382.8183.911.8K
Sep 14, 202683.9186.6182.3484.642.3K
Sep 15, 202684.6486.9383.0184.891.4K
Sep 16, 202684.8986.5483.0184.331.8K
Sep 17, 202684.3386.5981.0182.812.7K
Sep 18, 202682.8184.0879.3780.393.5K
Sep 21, 202680.3982.7875.4477.354.2K
Sep 22, 202677.3578.574.1475.063.5K
Sep 23, 202675.0677.3672.0573.892.6K
Sep 24, 202673.8975.5872.6674.051.7K
Sep 25, 202674.0577.6372.3675.512.9K
Sep 28, 202675.5181.0373.878.894.7K
Sep 29, 202678.8983.4577.6981.964K
Sep 30, 202681.9686.6380.184.313.4K
Oct 1, 202684.3186.8283.4385.722.6K
Oct 2, 202685.7288.5683.886.161.7K
Oct 5, 202686.1687.4784.385.352.2K
Oct 6, 202685.3587.5983.1584.941.9K
Oct 7, 202684.9486.9283.5985.241.8K
Oct 8, 202685.2488.4283.6386.412.6K
Oct 9, 202686.4190.3984.8188.393.4K
Oct 12, 202688.3992.0887.3290.753.3K

Pass through

pt reaches the parts — candle, wick, body, volume, crosshair, grid, axis, plot, tooltip and more.

Arrow keys move between values
Softer volume. Candlestick chart, 1 series, 30 values, from 28.4 to 55.32
CategoryOpenHighLowCloseVolume
Sep 1, 20265253.4349.0250.172.8K
Sep 2, 202650.1752.5145.7547.623.5K
Sep 3, 202647.6248.6643.9944.823.8K
Sep 4, 202644.8247.2240.3242.243.6K
Sep 7, 202642.2443.6140.8941.991.6K
Sep 8, 202641.9944.6440.2242.431.9K
Sep 9, 202642.4344.9741.0443.232.2K
Sep 10, 202643.2345.9341.6643.962.2K
Sep 11, 202643.9646.2542.3344.211.8K
Sep 14, 202644.2145.4840.7741.793.9K
Sep 15, 202641.7944.1736.8238.724K
Sep 16, 202638.7239.5934.7335.424.2K
Sep 17, 202635.4237.8130.4732.384K
Sep 18, 202632.3833.5329.1730.093.4K
Sep 21, 202630.0933.6728.431.552.8K
Sep 22, 202631.5535.9530.0534.083.8K
Sep 23, 202634.0839.1232.6137.284.4K
Sep 24, 202637.2842.835.5740.664.6K
Sep 25, 202640.6645.2239.4643.734.3K
Sep 28, 202643.7346.5741.8144.172.1K
Sep 29, 202644.1745.0843.143.831.5K
Sep 30, 202643.8346.241.1443.042K
Oct 1, 202643.0444.3541.1842.232K
Oct 2, 202642.2344.4740.0341.821.7K
Oct 5, 202641.8245.840.2243.83.2K
Oct 6, 202643.848.0442.4446.343.8K
Oct 7, 202646.3451.2644.5649.034K
Oct 8, 202649.0352.7247.9651.393.7K
Oct 9, 202651.3955.3249.552.963K
Oct 12, 202652.9654.0449.9650.833.1K

Unstyled

unstyled removes the tectra styles: no tokens, no colours by direction, no motion — the geometry, the tooltip and the keyboard stay, ready for your own CSS.

Arrow keys move between values
Unstyled chart. Candlestick chart, 1 series, 12 values, from 19.03 to 35.8
CategoryOpenHighLowCloseVolume
Sep 1, 20262024.619.0323.394.3K
Sep 2, 202623.3929.4121.5627.134.6K
Sep 3, 202627.1332.325.8630.714.5K
Sep 4, 202630.7135.7129.0533.633.9K
Sep 7, 202633.6335.831.1632.92.1K
Sep 8, 202632.934.3329.9231.073.1K
Sep 9, 202631.0733.4126.6528.523.8K
Sep 10, 202628.5229.5624.8925.724.1K
Sep 11, 202625.7228.1221.2223.143.9K
Sep 14, 202623.1424.5121.7922.891.9K
Sep 15, 202622.8925.5421.1223.331.6K
Sep 16, 202623.3325.8721.9424.132K