Creating Candlestick Charts in JavaScript

An interactive candlestick chart using an HTML canvas element and vanilla JavaScript

Christian Behler
Level Up Coding
Published in
5 min readJun 2, 2021

--

A candlestick chart of the Bitcoin price in Euro over the last 200 days. The price has spiked in March and April and has fallen by almost 50% since then.
The BTC-EUR candlestick chart for the last 200 days, image by author.

With some of the recent price records of Bitcoin and other cryptocurrencies, as well as the GameStop and AMC Reddit short squeezes, price charts have been all over the news. Especially when looking at live market data, a common way to display the…

--

--

M. Sc. Computer Science and Physics, Indie Game/Software/Web Developer, Writer, 3D Artist, and too many other interests. https://pingpoli.medium.com/membership