Valery
Posts: 14
Joined: Sun Apr 12, 2020 11:55 am

Depth chart middle

Hello! Which day I can’t understand how to make the transition point from asks to bids be constant in the middle, no matter how much data is in each area. Could you tell me, please?
piotr.m
Posts: 1433
Joined: Mon Nov 18, 2019 8:15 am

Re: Depth chart middle

Hi,

Thank you for contacting us with your question!

Looking at this example, do you mean 'Actual price' label?
Would you like it to always stay in the middle of the chart regardless of the amount of data?

Live demo: https://jsfiddle.net/BlackLabel/nscqLxj5/

Kind Regards
mangorino
Posts: 1
Joined: Thu Jun 03, 2021 2:49 am

Re: Depth chart middle

I'm studying about this case too. My data is live from my APIs. I have caculated the mean value to apply it into the actual price. Still the chart won't stay at the middle. Please provide further information about it. Thanks a lots!
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: Depth chart middle

Hello mangorino!

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

With each series update, you can calculate at which place should be the label placed. But could you reproduce the issue in an online editor that I could work on? Then it'll be easier for me to help you. :)

Best regards!
Dominik Chudy
Highcharts Developer

Return to “Highcharts Stock”