Skip to content

Commit a3ae79b

Browse files
authored
Merge pull request #4836 from Kim-Taehyeong/candle-chart
Addition of multi-series color candle Chart
2 parents d12c375 + 463d1f5 commit a3ae79b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/charts/BoxCandleStick.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,16 +217,16 @@ class BoxCandleStick extends Bar {
217217
let j = indexes.j
218218

219219
let isPositive = true
220-
let colorPos = w.config.plotOptions.candlestick.colors.upward
221-
let colorNeg = w.config.plotOptions.candlestick.colors.downward
220+
let realIndex = indexes.realIndex
221+
let colorPos = w.config.plotOptions.candlestick.colors.upward[realIndex]
222+
let colorNeg = w.config.plotOptions.candlestick.colors.downward[realIndex]
222223
let color = ''
223224

224225
if (this.isBoxPlot) {
225226
color = [this.boxOptions.colors.lower, this.boxOptions.colors.upper]
226227
}
227228

228229
const yRatio = this.yRatio[indexes.translationsIndex]
229-
let realIndex = indexes.realIndex
230230

231231
const ohlc = this.getOHLCValue(realIndex, j)
232232
let l1 = zeroH

0 commit comments

Comments
 (0)