Skip to content

Commit 327cda8

Browse files
committed
disbale interactions with parcats when staticPlot is true
1 parent e949c34 commit 327cda8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/traces/parcats/parcats.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ var tinycolor = require('tinycolor2');
1111
var svgTextUtils = require('../../lib/svg_text_utils');
1212

1313
function performPlot(parcatsModels, graphDiv, layout, svg) {
14+
var isStatic = graphDiv._context.staticPlot;
15+
1416
var viewModels = parcatsModels.map(createParcatsViewModel.bind(0, graphDiv, layout));
1517

1618
// Get (potentially empty) parcatslayer selection with bound data to single element array
@@ -20,7 +22,7 @@ function performPlot(parcatsModels, graphDiv, layout, svg) {
2022
layerSelection.enter()
2123
.append('g')
2224
.attr('class', 'parcatslayer')
23-
.style('pointer-events', 'all');
25+
.style('pointer-events', isStatic ? 'none' : 'all');
2426

2527
// Bind data to children of layerSelection and get reference to traceSelection
2628
var traceSelection = layerSelection

0 commit comments

Comments
 (0)