From 4f0a43d6eafee6eb2849c98777918e2c0d6faee7 Mon Sep 17 00:00:00 2001 From: Gordon Woodhull Date: Thu, 8 Apr 2021 11:59:13 -0400 Subject: [PATCH] adapt ordinal bar example for d3@6 event changes fixes #1826 --- web-src/examples/focus-ordinal-bar.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web-src/examples/focus-ordinal-bar.html b/web-src/examples/focus-ordinal-bar.html index 91b13ed66e..0a618e82a8 100644 --- a/web-src/examples/focus-ordinal-bar.html +++ b/web-src/examples/focus-ordinal-bar.html @@ -132,7 +132,7 @@ } }; focus.on('pretransition', function(chart) { - chart.selectAll('rect.bar').on('click.ordinal-select', function(d) { + chart.selectAll('rect.bar').on('click.ordinal-select', dc.d3compat.eventHandler(function(d) { var i = focusFilter.indexOf(d.data.key); if(i >= 0) focusFilter.splice(i, 1); @@ -140,7 +140,7 @@ focusFilter.push(d.data.key); chart.applyFilter(); chart.redrawGroup(); - }); + })); }); focus.on('preRedraw', function(chart) {