From b0380d4ede59552d0710466d3f265951c2e83436 Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Sun, 1 Nov 2015 22:50:16 -0700 Subject: [PATCH] Check if dataset is visible when adding active elements to a tooltip --- src/core/core.controller.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/core.controller.js b/src/core/core.controller.js index 7ec01bad4..8c46fd4df 100644 --- a/src/core/core.controller.js +++ b/src/core/core.controller.js @@ -311,7 +311,9 @@ } helpers.each(this.data.datasets, function(dataset, dsIndex){ - elementsArray.push(dataset.metaData[found._index]); + if(helpers.isDatasetVisible(dataset)){ + elementsArray.push(dataset.metaData[found._index]); + } }, this); return elementsArray; -- 2.47.2