papaja
Posts: 6
Joined: Wed Mar 31, 2021 9:27 pm

CCI, CMF and similar indicators push Y Axis down

Hello,
I've put little fiddle: https://jsfiddle.net/papaja/epoa1g8b/1/

If you try to add CCI indicator it will push all Y axis down except range selector. I am adding these axis and series dynamically so I believe that I am missing something.
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: CCI, CMF and similar indicators push Y Axis down

Hello papaja!

Welcome to our forum and thanks for contacting us with your question!

Each indicator does something different and each of them demands something different from the chart. You need to make sure that all series are assigned to proper axes. I also suggest reading about each indicator you want to use in our API.

Docs:
https://api.highcharts.com/highstock/plotOptions.cci
https://www.highcharts.com/docs/stock/t ... tor-series

Demo with CCI indicator:
https://jsfiddle.net/gh/get/library/pur ... cators/cci

Best regards!
Dominik Chudy
Highcharts Developer
papaja
Posts: 6
Joined: Wed Mar 31, 2021 9:27 pm

Re: CCI, CMF and similar indicators push Y Axis down

Dear Dominik,
Thank you for your reply.

Adding CCI to https://www.highcharts.com/demo/stock/stock-tools-gui works out of the box without any special configuration for CCI compressing Price and Volume series UP. Adding CMF afterwards again compresses ALL other series UP and everything is visible.

What am I doing wrong in my fiddle? Why does adding CCI MOVES ALL series down making them invisible?
pawelys
Posts: 962
Joined: Wed Sep 02, 2020 10:37 am

Re: CCI, CMF and similar indicators push Y Axis down

Hello, I don't really understand, what is the issue here. Adding any indicator, that requires an extra axis (generally oscillators are preferred to be displayed on different axis because the values aren't close to linked series) creates the axis, and in order to fit it in the chart, It has to shrink all of the other axes. In the newest release, this functionality will be slightly changed, but generally, it all works fine. Could you share the exact steps, that cause the chart to break?

Btw current list of all of the indicators is listed here: https://www.highcharts.com/docs/stock/t ... tor-series
Kind regards,
Paweł Lysy
Highcharts Developer
papaja
Posts: 6
Joined: Wed Mar 31, 2021 9:27 pm

Re: CCI, CMF and similar indicators push Y Axis down

Steps to reproduce:
1. Open https://jsfiddle.net/papaja/epoa1g8b/1/
2. Click Indicators
3. Choose CCI and click ADD
4. Observe how everything moves down and becomes unusable.
pawelys
Posts: 962
Joined: Wed Sep 02, 2020 10:37 am

Re: CCI, CMF and similar indicators push Y Axis down

Ok, this issue was already resolved. Check the following issue on our GitHub: https://github.com/highcharts/highcharts/issues/13807

This happens because the logic of handling multiple yAxes, which were overlapping each other had some flows.

This fix will be available in the next release. because of the complexity of the logic, it is hard to create an easy workaround. You can use the current master branch, or just try to avoid creating multiple yAxes, that are overlapping each other right now, or just add the series and yAxis right away like here: https://jsfiddle.net/BlackLabel/13o6e2w7/

let me know, if that works for you! Kind regards,
Paweł Lysy
Highcharts Developer
papaja
Posts: 6
Joined: Wed Mar 31, 2021 9:27 pm

Re: CCI, CMF and similar indicators push Y Axis down

I have downloaded and built master branch and it seems that problem is solved. Thank you.

Do you know when will be next official release?
pawelys
Posts: 962
Joined: Wed Sep 02, 2020 10:37 am

Re: CCI, CMF and similar indicators push Y Axis down

Hi again! This is one of the most common questions, and the hardest to answer :D. We are constantly working on new features and bugs, so the next release shouldn't be distant, but it is hard to pinpoint the exact date. You can follow our official highcharts twitter account for more information! Kind regards,
Paweł Lysy
Highcharts Developer

Return to “Highcharts Stock”