Skip to content

Commit bfc8858

Browse files
committed
sort list of scattergl dash for schema
1 parent 4679800 commit bfc8858

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

src/traces/scattergl/attributes.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ var scatterAttrs = require('../scatter/attributes');
55
var axisHoverFormat = require('../../plots/cartesian/axis_format_attributes').axisHoverFormat;
66
var colorScaleAttrs = require('../../components/colorscale/attributes');
77

8+
var sortedObjectKeys = require('../../lib/sorted_object_keys');
89
var extendFlat = require('../../lib/extend').extendFlat;
910
var overrideAll = require('../../plot_api/edit_types').overrideAll;
1011
var DASHES = require('./constants').DASHES;
@@ -59,7 +60,7 @@ var attrs = module.exports = overrideAll({
5960
},
6061
dash: {
6162
valType: 'enumerated',
62-
values: Object.keys(DASHES),
63+
values: sortedObjectKeys(DASHES),
6364
dflt: 'solid',
6465
description: 'Sets the style of the lines.'
6566
}

test/plot-schema.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49288,12 +49288,12 @@
4928849288
"editType": "calc",
4928949289
"valType": "enumerated",
4929049290
"values": [
49291-
"solid",
49292-
"dot",
4929349291
"dash",
49294-
"longdash",
4929549292
"dashdot",
49296-
"longdashdot"
49293+
"dot",
49294+
"longdash",
49295+
"longdashdot",
49296+
"solid"
4929749297
]
4929849298
},
4929949299
"editType": "calc",
@@ -54147,12 +54147,12 @@
5414754147
"editType": "calc",
5414854148
"valType": "enumerated",
5414954149
"values": [
54150-
"solid",
54151-
"dot",
5415254150
"dash",
54153-
"longdash",
5415454151
"dashdot",
54155-
"longdashdot"
54152+
"dot",
54153+
"longdash",
54154+
"longdashdot",
54155+
"solid"
5415654156
]
5415754157
},
5415854158
"editType": "calc",

0 commit comments

Comments
 (0)