We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e66b486 commit ad078e5Copy full SHA for ad078e5
src/view/CandleBarView.ts
@@ -52,7 +52,7 @@ export default class CandleBarView extends ChildrenView {
52
if (ohlcSize > 2 && ohlcSize % 2 === 1) {
53
ohlcSize--
54
}
55
- halfOhlcSize = Math.floor(halfOhlcSize / 2)
+ halfOhlcSize = Math.floor(ohlcSize / 2)
56
57
const yAxis = pane.getAxisComponent()
58
this.eachChildren((visibleData, barSpace) => {
@@ -124,7 +124,7 @@ export default class CandleBarView extends ChildrenView {
124
{
125
x: x - barSpace.halfGapBar,
126
y: openY + ohlcSize > priceY[3] ? priceY[3] - ohlcSize : openY,
127
- width: barSpace.halfGapBar,
+ width: barSpace.halfGapBar - halfOhlcSize,
128
height: ohlcSize
129
},
130
0 commit comments