Skip to content

Commit c753e47

Browse files
authored
Merge pull request #1506 from plotly/parcoords-no-trace-opacity
add 'noOpacity' flag to parcoords trace module
2 parents b106b9f + 1ebe39a commit c753e47

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/traces/parcoords/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Parcoords.colorbar = require('./colorbar');
1919
Parcoords.moduleType = 'trace';
2020
Parcoords.name = 'parcoords';
2121
Parcoords.basePlotModule = require('./base_plot');
22-
Parcoords.categories = ['gl'];
22+
Parcoords.categories = ['gl', 'noOpacity'];
2323
Parcoords.meta = {
2424
description: [
2525
'Parallel coordinates for multidimensional exploratory data analysis.',

test/jasmine/tests/parcoords_test.js

+12
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@ describe('parcoords initialization tests', function() {
2828

2929
'use strict';
3030

31+
describe('parcoords global defaults', function() {
32+
33+
it('should not coerce trace opacity', function() {
34+
var gd = Lib.extendDeep({}, mock1);
35+
36+
Plots.supplyDefaults(gd);
37+
38+
expect(gd._fullData[0].opacity).toBeUndefined();
39+
});
40+
41+
});
42+
3143
describe('parcoords defaults', function() {
3244

3345
function _supply(traceIn) {

0 commit comments

Comments
 (0)