File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments