# Control horizontal scale for CandlestickChart?

**URL:** <https://community.wolfram.com/t/control-horizontal-scale-for-candlestickchart/13373>\
**Category:** Questions\
**Tags:** graphics-and-visualization\
**Created:** [November 29, 2018, 6:14pm UTC](https://community.wolfram.com/t/control-horizontal-scale-for-candlestickchart/13373 "2018-11-29T18:14:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![airservices](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@airservices](https://community.wolfram.com/u/airservices)\
**Post date:** [November 29, 2018, 6:14pm UTC](https://community.wolfram.com/t/control-horizontal-scale-for-candlestickchart/13373/1 "2018-11-29T18:14:06Z")

</div>

The documentation for CandlestickChart says:  
“The dates are considered an ordered sequence of events, and are not shown  
on an absolute time scale.”  
However, I don’t understand why there should be such a difference between the following:

```
CandlestickChart[{{{2017, 1, 1}, {90, 94, 80, 85}}, {{2018, 1, 2}, {81, 125, 70, 120}}}]
CandlestickChart[{{{2018, 1, 1}, {90, 94, 80, 85}}, {{2018, 1, 2}, {81, 125, 70, 120}}}]

```

The only difference is the year in the first element. The resultant charts are:

 ![candles.jpg](https://global.discourse-cdn.com/wolfram/original/3X/9/7/978268641e4bb75f666fef03171fbd5a05d79b88.jpeg)

I did try removing the month and day from the 2017/2018 code, but the chart was still SCRUNCHED.  
If that is resolved, how can I eliminate the grey “discontinuity” bars in the first (2017,2018) chart?

Using Mathematica 11.3.0

---

<div class="post-metadata">

**Author:** ![eforrester](https://avatars.discourse-cdn.com/v4/letter/e/ecd19e/32.png) [@eforrester](https://community.wolfram.com/u/eforrester)\
**Post date:** [November 30, 2018, 2:44pm UTC](https://community.wolfram.com/t/control-horizontal-scale-for-candlestickchart/13373/2 "2018-11-30T14:44:28Z")

</div>

The gray bars are showing year separation. Look at the output of the following:

```
CandlestickChart[{{{2017, 1, 1}, {90, 94, 80, 85}}, {{2017, 12, 
    31}, {81, 125, 70, 120}}}] 
CandlestickChart[{{{2017, 1, 30}, {90, 94, 80, 85}}, {{2017, 12, 
    1}, {81, 125, 70, 120}}}] 

```

Edited to add images

[Candlesticks.bmp](https://community.wolfram.com/uploads/short-url/n9mhdJ6Lfk1hewEf8J4sDAqovOi.bmp) (98 KB)
