Skip to content

Commit

Permalink
Merge pull request #5673 from plotly/parcoords-constraintrange-valtype
Browse files Browse the repository at this point in the history
Fixup parcoords constraintrange valType and validate parcoords mocks
  • Loading branch information
archmoj authored Jul 17, 2021
2 parents d17ddc1 + 1e0aa6e commit 3725a47
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 14 deletions.
2 changes: 2 additions & 0 deletions draftlogs/5673_change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Relax the valType of `constraintrange` in `parcoords` trace [[#5673](https://github.com/plotly/plotly.js/pull/5673)]

4 changes: 2 additions & 2 deletions src/traces/parcoords/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ module.exports = {
freeLength: true,
dimensions: '1-2',
items: [
{valType: 'number', editType: 'plot'},
{valType: 'number', editType: 'plot'}
{valType: 'any', editType: 'plot'},
{valType: 'any', editType: 'plot'}
],
editType: 'plot',
description: [
Expand Down
6 changes: 0 additions & 6 deletions tasks/test_mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,6 @@ function notBlackListed(name) {
'gl2d_fonts',
'gl2d_layout_image',
'gl2d_marker_coloraxis',
'gl2d_parcoords_256_colors',
'gl2d_parcoords_constraints',
'gl2d_parcoords_out-of-range_selected-above-below',
'gl2d_parcoords_out-of-range_selected-all',
'gl2d_parcoords_out-of-range_selected-below',
'gl2d_parcoords_select_first_last_enum',
'gl2d_pointcloud-basic',
'gl2d_rgb_dont_accept_alpha_scattergl',
'gl2d_scatter-marker-line-colorscales',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@
{
"label": "A",
"constraintrange": [
[
2.5,
10
]
2.5,
10
],
"values": [
1,
Expand Down
4 changes: 2 additions & 2 deletions test/plot-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -37824,11 +37824,11 @@
"items": [
{
"editType": "plot",
"valType": "number"
"valType": "any"
},
{
"editType": "plot",
"valType": "number"
"valType": "any"
}
],
"valType": "info_array"
Expand Down

0 comments on commit 3725a47

Please sign in to comment.