# \[BUG\] XY Chart Candlestick

**URL:** <https://forum.inductiveautomation.com/t/bug-xy-chart-candlestick/49812>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [August 11, 2021, 2:29pm UTC](https://forum.inductiveautomation.com/t/bug-xy-chart-candlestick/49812 "2021-08-11T14:29:34Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [August 12, 2021, 4:43pm UTC](https://forum.inductiveautomation.com/t/bug-xy-chart-candlestick/49812/6 "2021-08-12T16:43:27Z")

</div>

I was able to get this working (after requesting some help form the Dev who implemented the chart). Here are the important pieces for setting up a "standard" candlestick chart:

#### Underlying data:

The object for each data entry will need to supply five pieces of data: date, high, low, open, close. Going forward in my example, we will use those five values as keys.

 ![Screen Shot 2021-08-12 at 9.38.11 AM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/4/c446d50da65b0ba644699a9255851fda9fac5323.png)

#### Axes:

I have only one entry for `xAxes` and one entry for `yAxes`. My `xAxes` entry is named "dateAxis", and my `yAxes` entry is named "valuation".

#### Series:

With those aforementioned settings in place, the following configuration displayed a candlestick chart.

- Note that `series.data.y` is set to close, and that there is no `candlestick.close` property. I have no idea why it was implemented this way, but I _suspect_ it was because the underlying library probably requires a `y` value be supplied, and so in some way it made sense to default to that y value for the close. 🤷‍♂️  
 ![Screen Shot 2021-08-12 at 9.34.53 AM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/d/cdfda5cb1bedd9102d420a543c11a672c525815b.png)

#### Result:

 ![Screen Shot 2021-08-12 at 9.42.00 AM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/a/2aa95e39de176ac766afb901eee6dbd51f2795d5.png)

#### Known issue:

We are aware of [this issue](https://forum.inductiveautomation.com/t/bug-perspective-xy-chart-candlestick-low-value-not-rendering-correctly/48676) reported recently in regard to the "low" value always appearing to be `0`.

---

_[View the full topic](https://forum.inductiveautomation.com/t/bug-xy-chart-candlestick/49812)._
