Add a property to adjust spacing of marker relative to wick of kline
Is your feature request related to a problem? Please describe.
Yes. When adding multiple marker on a chart, it can easily become hard to have a clear vision on all klines. Because the margin between the marker and the wicks is too small. Which is frustrating.
A marker can be added in two way ::
aboveBar | belowBar : the margin can not be manually adjusted but it allows stacking of marker on the same kline.
at a specified price + atPriceTop | atPriceBottom : the margin can be manually calculated but stacking multiple marker should be handled manually. Which create another frustrating thing :: the markers will overlap on each other when the price scale is adjusted.
Describe the solution you'd like
When aboveBar | belowBar is used on the marker, another property can be used to specify margin.
For instance ::
const marker = {
position: "aboveBar",
spacing: 2 // <-- new property
...
};Default value for spacing : 1 How to implement : multiply current value used in code by this property. But should also take care of how marker that stack one above the other will keep staking properly without overlapping or creating huge gap.
Source: tradingview/lightweight-charts