bjurhager
Posts: 15
Joined: Thu Jul 22, 2021 1:01 pm

Plot bars on yAxis similar to "VPR" indicator

Hello again :) How do i plot custom bars on yAxis like you do with the indicator Volume Profile?

To clarify, Iv'e got a standard candlestick chart were i need to plot custom data on yAxis in the form of bars / columns.
I need those bars to be linked to the main candlestick chart yAxis price.

How can this be done?
Best / F
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Plot bars on yAxis similar to "VPR" indicator

Hello there,

Thank you for contacting us!

Unfortunately, it might be quite hard to achieve it with some simple API properties, due to the fact that adding a bar chart would rotate your whole chart (otherwise, you would have x and y axes on top of each other).
I would suggest creating a custom function which will use Highcharts.SVGRenderer to draw some bars on your chart. You can also try to overwrite the VBPIndicator default functionality, but that would be much harder than simply drawing those bars.

SVG Renderer: https://api.highcharts.com/class-refere ... VGRenderer

If you will encounter any issues while implementing that, please do not hesitate to contact us anytime,
Best regards!
Kamil Musiałowski
Highcharts Developer

Return to “Highcharts Stock”