jackytanjq
Posts: 33
Joined: Mon Jul 26, 2021 2:53 am

Fibonacci annotation change from 3 points to 2 points

Hello,

Can I know if the Fibonacci can be changed from 3 points (left drawing in screenshot) to 2 points (right drawing in screenshot) ?
FibonacciRetracementPoints.png
FibonacciRetracementPoints.png (10.34 KiB) Viewed 747 times
As it does not look like it is controlled in the Fibonacci.prototype.linkRetracementsPoints.

Looking forward to hear from you soon.
Thank you.

Kind regards,
Jacky
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Fibonacci annotation change from 3 points to 2 points

Hi jackytanjq,

Thanks for contacting us with your question.

Fibonacci annotation in Highcharts consists of 3 control points because it allows you to adjust its angle. Unfortunately there is no option that could change it to 2 points. If you would like to see such option implemented, then please create a feature request and leave your feedback.

Regards!
Mateusz Bernacik
Highcharts Developer
jackytanjq
Posts: 33
Joined: Mon Jul 26, 2021 2:53 am

Re: Fibonacci annotation change from 3 points to 2 points

Hello Mateusz,

Can I know if I can make the 2nd point's Y-coordinate to be the same as the 1st point?
Meaning it will be a straight horizontal line instead of being an angled line.

Kind regards,
Jacky
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Fibonacci annotation change from 3 points to 2 points

Hi jackytanjq,

I think I understand what you want to achieve, but it is not doable from API level. Most likely you would have to change this code:
https://github.com/highcharts/highchart ... 1751-L1810

Precisely, lines 1806 - 1809

Code: Select all

        steps: [
            bindingsUtils.updateNthPoint(1),
            bindingsUtils.updateHeight
        ]
Those steps are based on 2nd and 3rd click, and you could even try to achieve your initial goal by adjusting it. To learn more how to do that please read this article about extending Highcharts code:
https://www.highcharts.com/docs/extendi ... highcharts

If it doesn't work, then you will need to create a feature request, because as I mentioned before, it is not possible to adjust FIbonacci control points from API level.

Regards!
Mateusz Bernacik
Highcharts Developer
jackytanjq
Posts: 33
Joined: Mon Jul 26, 2021 2:53 am

Re: Fibonacci annotation change from 3 points to 2 points

Hello Mateusz,

Thank you for your advise, I have managed to make the 2nd point's Y-coordinate to be the same as the 1st point by customizing the updateNthPoint function.

Cheers.
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Fibonacci annotation change from 3 points to 2 points

Hi jackytanjq,

Glad to hear you have figured it out! In case of any further questions feel free to contact us again.

Regards!
Mateusz Bernacik
Highcharts Developer

Return to “Highcharts Stock”