# Adding a new line to a candlestick plot

**URL:** <https://discourse.julialang.org/t/adding-a-new-line-to-a-candlestick-plot/53375>\
**Category:** Visualization\
**Tags:** plotting\
**Created:** [January 15, 2021, 7:17am UTC](https://discourse.julialang.org/t/adding-a-new-line-to-a-candlestick-plot/53375 "2021-01-15T07:17:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [January 15, 2021, 7:56am UTC](https://discourse.julialang.org/t/adding-a-new-line-to-a-candlestick-plot/53375/2 "2021-01-15T07:56:54Z")

</div>

It looks like the `candlestick` recipe is tricking you by basically just putting bars centered at `0.5:1:nrow(ta)` and then overwriting the `xticks` with the dates. You can do:

```julia
plot!(0.5:1:20.5, values(ta.Open))

```

![image](https://global.discourse-cdn.com/julialang/original/3X/2/0/2020cb4d1123100c7ef42c11df177a895af0fced.png)

I think ideally they would just use the actual Dates as x locations, but there might be reasons I’m unaware of why they had to do it this way. Maybe worth filing an issue?

---

_[View the full topic](https://discourse.julialang.org/t/adding-a-new-line-to-a-candlestick-plot/53375)._
