# Candlestick Charts with GLMakie

**URL:** <https://discourse.julialang.org/t/candlestick-charts-with-glmakie/119086>\
**Category:** Visualization\
**Tags:** makie\
**Created:** [September 5, 2024, 6:40pm UTC](https://discourse.julialang.org/t/candlestick-charts-with-glmakie/119086 "2024-09-05T18:40:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AUK1939](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@AUK1939](https://discourse.julialang.org/u/AUK1939)\
**Post date:** [September 5, 2024, 6:40pm UTC](https://discourse.julialang.org/t/candlestick-charts-with-glmakie/119086/1 "2024-09-05T18:40:13Z")

</div>

Hi I’m thinking of moving away from PlotlyJS.jl and trying GLMakie.jl. My end goal is to create a CandleStick chart. First a static example and then have the bars update in realtime. However I’ve noticed that Makie.jl does not have a CandleStick chart like Plotly does. So my question is what would be a good approach to achieve this? A range slider for the dates would be nice too if possible.

The closest thing I found online [here](https://github.com/lazarusA/100daysOfMakie#27-candle-stick) uses renctangles and lines to imitate a candlestick chart. The result is so so as you zoom in and out.

Is there a better approach to create candlestick charts with GLMakie?

---

<div class="post-metadata">

**Author:** ![jar1](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jar1](https://discourse.julialang.org/u/jar1)\
**Post date:** [September 5, 2024, 6:42pm UTC](https://discourse.julialang.org/t/candlestick-charts-with-glmakie/119086/2 "2024-09-05T18:42:23Z")

</div>

Check out

> **[GitHub - lazarusA/100daysOfMakie: 100 days of Makie examples](https://github.com/lazarusA/100daysOfMakie#27-candle-stick)**
>
> 100 days of Makie examples

---

<div class="post-metadata">

**Author:** ![AUK1939](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@AUK1939](https://discourse.julialang.org/u/AUK1939)\
**Post date:** [September 5, 2024, 6:49pm UTC](https://discourse.julialang.org/t/candlestick-charts-with-glmakie/119086/3 "2024-09-05T18:49:29Z")

</div>

yes that’s the link I posted - seems to combine a rectangle and line to draw a candle. I was wondering if there’s other, perhaps better approaches available. Thx

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)\
**Post date:** [September 5, 2024, 8:33pm UTC](https://discourse.julialang.org/t/candlestick-charts-with-glmakie/119086/4 "2024-09-05T20:33:25Z")

</div>

There’s also this [Recipes | Makie](https://docs.makie.org/stable/explanations/recipes#Example:-Stock-Chart)

---

<div class="post-metadata">

**Author:** ![AUK1939](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@AUK1939](https://discourse.julialang.org/u/AUK1939)\
**Post date:** [September 5, 2024, 10:06pm UTC](https://discourse.julialang.org/t/candlestick-charts-with-glmakie/119086/5 "2024-09-05T22:06:57Z")

</div>

Perfect, exactly what I was looking for. Thanks
