Skip to content

Commit

Permalink
Merge pull request #4836 from Kim-Taehyeong/candle-chart
Browse files Browse the repository at this point in the history
Addition of multi-series color candle Chart
  • Loading branch information
junedchhipa authored Dec 2, 2024
2 parents d12c375 + 463d1f5 commit a3ae79b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/charts/BoxCandleStick.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,16 +217,16 @@ class BoxCandleStick extends Bar {
let j = indexes.j

let isPositive = true
let colorPos = w.config.plotOptions.candlestick.colors.upward
let colorNeg = w.config.plotOptions.candlestick.colors.downward
let realIndex = indexes.realIndex
let colorPos = w.config.plotOptions.candlestick.colors.upward[realIndex]
let colorNeg = w.config.plotOptions.candlestick.colors.downward[realIndex]
let color = ''

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

const yRatio = this.yRatio[indexes.translationsIndex]
let realIndex = indexes.realIndex

const ohlc = this.getOHLCValue(realIndex, j)
let l1 = zeroH
Expand Down

0 comments on commit a3ae79b

Please sign in to comment.