More than a request it is a solution to an error that I found in the code that I hope they will add in future versions, if they want, but first the details I have a main candlestick chart and on top of this the user, that is, I can put other charts for comparison purposes, they all share the x axis, that is, the dates, but the “y” axis of each chart has different scales; previously it did not show the “y” axis of the secondary graphs so only the “y” axis of the main graph was visible and it only added a note on this axis but visually it did not look good, it was necessary to see the “y” axes of each secondary graph and as I recently learned to use the autoshift parameter I decided to use it to achieve my purpose with its corresponding overlaying: “y” and anchor: “free” to make it work and so far everything was fine the graphs were added with their corresponding axes and the position and margin were automatically calculated both when adding or removing graphs, the problem came when I added a specific indicator which is the “VPVR” this indicator when it is added I send it to the background so that the main graph is on top of it and for this I use an overlaying of the “x” axis since this indicator only shares the “y” axis but not the “x” with the main graph and that was when the program broke but it also happened doing it the other way around, adding the “VPVR” first and then some secondary graphics that handle autoshift, in short the overlaying of the “VPVR” conflicted with the autoshift of the secondary graphics as seen in the image
The problem is in a variable in the handlePositionDefaults function which is overlayingDomain which started to have a value of undefined after adding the VPVR but before its value was always [0,1] and which is used to indicate which side the axis will be rendered (0-left, 1-right) so the only thing I did was change this line
var overlayingDomain = options.overlayingDomain;
For this
var overlayingDomain = options.overlayingDomain || [0, 1];
And that’s it, everything worked again.