diff --git a/src/compile/mark/init.ts b/src/compile/mark/init.ts index 3f7379cfc9..3c730e5d39 100644 --- a/src/compile/mark/init.ts +++ b/src/compile/mark/init.ts @@ -56,7 +56,8 @@ export function initMarkdef(originalMarkDef: MarkDef, encoding: Encoding // set opacity and filled if not specified in mark config const specifiedOpacity = getMarkPropOrConfig('opacity', markDef, config); - if (specifiedOpacity === undefined) { + const specifiedfillOpacity = getMarkPropOrConfig('fillOpacity', markDef, config); + if (specifiedOpacity === undefined && specifiedfillOpacity === undefined) { markDef.opacity = opacity(markDef.type, encoding); }