Candlestick
<zyna-candlestick>
OHLC candlestick chart. Each period is drawn as a wick (high to low) with a body showing open and close. Bullish candles (close above open) use the accent colour; bearish candles use the bear colour.
Demo
Daily OHLC — synthetic price series
<zyna-candlestick data='[ {"date":"04-01","open":100,"high":104,"low":97, "close":103}, {"date":"04-02","open":103,"high":107,"low":102,"close":106}, {"date":"04-03","open":106,"high":108,"low":101,"close":102} // … ]' color="#C9A84C" bear-color="#FF5252" theme="dark" ></zyna-candlestick>
Usage Tips
- Feed data in chronological order — the chart uses the input order as the x-axis order.
- Pre-format date strings on the server; the chart renders them as-is on the x-axis.
- Keep series between 20 and 80 candles for best legibility. Denser series work but individual bodies get thin.
- Don't mix timeframes in one chart (daily + hourly). The band scale gives equal width to every entry.