Skip to content

Commit 3725a47

Browse files
authored
Merge pull request #5673 from plotly/parcoords-constraintrange-valtype
Fixup parcoords constraintrange valType and validate parcoords mocks
2 parents d17ddc1 + 1e0aa6e commit 3725a47

File tree

5 files changed

+8
-14
lines changed

5 files changed

+8
-14
lines changed

draftlogs/5673_change.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Relax the valType of `constraintrange` in `parcoords` trace [[#5673](https://github.com/plotly/plotly.js/pull/5673)]
2+

src/traces/parcoords/attributes.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ module.exports = {
9696
freeLength: true,
9797
dimensions: '1-2',
9898
items: [
99-
{valType: 'number', editType: 'plot'},
100-
{valType: 'number', editType: 'plot'}
99+
{valType: 'any', editType: 'plot'},
100+
{valType: 'any', editType: 'plot'}
101101
],
102102
editType: 'plot',
103103
description: [

tasks/test_mock.js

-6
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,6 @@ function notBlackListed(name) {
162162
'gl2d_fonts',
163163
'gl2d_layout_image',
164164
'gl2d_marker_coloraxis',
165-
'gl2d_parcoords_256_colors',
166-
'gl2d_parcoords_constraints',
167-
'gl2d_parcoords_out-of-range_selected-above-below',
168-
'gl2d_parcoords_out-of-range_selected-all',
169-
'gl2d_parcoords_out-of-range_selected-below',
170-
'gl2d_parcoords_select_first_last_enum',
171165
'gl2d_pointcloud-basic',
172166
'gl2d_rgb_dont_accept_alpha_scattergl',
173167
'gl2d_scatter-marker-line-colorscales',

test/image/mocks/gl2d_parcoords_out-of-range_selected-all.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@
1919
{
2020
"label": "A",
2121
"constraintrange": [
22-
[
23-
2.5,
24-
10
25-
]
22+
2.5,
23+
10
2624
],
2725
"values": [
2826
1,

test/plot-schema.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -37824,11 +37824,11 @@
3782437824
"items": [
3782537825
{
3782637826
"editType": "plot",
37827-
"valType": "number"
37827+
"valType": "any"
3782837828
},
3782937829
{
3783037830
"editType": "plot",
37831-
"valType": "number"
37831+
"valType": "any"
3783237832
}
3783337833
],
3783437834
"valType": "info_array"

0 commit comments

Comments
 (0)