diff --git a/modules/svg/areas.js b/modules/svg/areas.js index f50276416..e71dd11fc 100644 --- a/modules/svg/areas.js +++ b/modules/svg/areas.js @@ -117,7 +117,7 @@ export function Areas(projection) { }).left; function sortedByArea(entity) { - if (this.__data__ === 'fill') { + if (this._parent.__data__ === 'fill') { return fills[bisect(fills, -entity.area(graph))]; } }