@@ -319,8 +319,8 @@ class Bar {
319
319
const graphics = new Graphics ( this . ctx )
320
320
321
321
if ( ! lineFill ) {
322
- // if user provided a function in colors, we need to eval here
323
- // Note: the position of this function logic (ex. stroke: { colors: ["",function(){}] }) i.e array index 1 depicts the realIndex/seriesIndex.
322
+ // if user provided a function in colors, we need to eval here
323
+ // Note: the position of this function logic (ex. stroke: { colors: ["",function(){}] }) i.e array index 1 depicts the realIndex/seriesIndex.
324
324
function fetchColor ( i ) {
325
325
const exp = w . config . stroke . colors
326
326
let c
@@ -329,12 +329,8 @@ class Bar {
329
329
if ( ! c ) c = ''
330
330
if ( typeof c === 'function' ) {
331
331
return c ( {
332
- value : w . globals . axisCharts
333
- ? w . globals . series [ i ] [ j ]
334
- ? w . globals . series [ i ] [ j ]
335
- : 0
336
- : w . globals . series [ i ] ,
337
- dataPointIndex : i ,
332
+ value : w . globals . series [ i ] [ j ] ,
333
+ dataPointIndex : j ,
338
334
w,
339
335
} )
340
336
}
@@ -573,7 +569,11 @@ class Bar {
573
569
}
574
570
}
575
571
576
- y = this . barHelpers . getYForValue ( this . series [ i ] [ j ] , zeroH , translationsIndex )
572
+ y = this . barHelpers . getYForValue (
573
+ this . series [ i ] [ j ] ,
574
+ zeroH ,
575
+ translationsIndex
576
+ )
577
577
578
578
const paths = this . barHelpers . getColumnPaths ( {
579
579
barXPosition,
@@ -606,7 +606,14 @@ class Bar {
606
606
pathFrom : paths . pathFrom ,
607
607
x,
608
608
y,
609
- goalY : this . barHelpers . getGoalValues ( 'y' , null , zeroH , i , j , translationsIndex ) ,
609
+ goalY : this . barHelpers . getGoalValues (
610
+ 'y' ,
611
+ null ,
612
+ zeroH ,
613
+ i ,
614
+ j ,
615
+ translationsIndex
616
+ ) ,
610
617
barXPosition,
611
618
barWidth,
612
619
}
0 commit comments