Skip to content

Commit e95a2c4

Browse files
committed
fix bar get color when cd has mcc
1 parent a8d4bfd commit e95a2c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/bar/style.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ function getBarColor(cd, trace) {
158158
if(trace.type === 'waterfall') {
159159
return trace[cd.dir].marker.color;
160160
}
161-
return cd.mc || trace.marker.color;
161+
return cd.mcc || cd.mc || trace.marker.color;
162162
}
163163

164164
module.exports = {

0 commit comments

Comments
 (0)