@@ -18,7 +18,6 @@ var extendDeep = require('../../lib/extend').extendDeep;
18
18
var extendFlat = require ( '../../lib/extend' ) . extendFlat ;
19
19
20
20
module . exports = {
21
-
22
21
domain : {
23
22
x : {
24
23
valType : 'info_array' ,
@@ -120,36 +119,26 @@ module.exports = {
120
119
description : 'The dimensions (variables) of the parallel coordinates chart. 2..60 dimensions are supported.'
121
120
} ,
122
121
123
- line : extendFlat ( { } ,
124
-
122
+ line : extendFlat (
125
123
// the default autocolorscale isn't quite usable for parcoords due to context ambiguity around 0 (grey, off-white)
126
- // autocolorscale therefore defaults to false too, to avoid being overridden by the blue-white-red autocolor palette
124
+ // autocolorscale therefore defaults to false too, to avoid being overridden by the blue-white-red autocolor palette
127
125
extendDeep (
128
- { } ,
129
126
colorAttributes ( 'line' ) ,
130
127
{
131
- colorscale : extendDeep (
132
- { } ,
133
- colorAttributes ( 'line' ) . colorscale ,
134
- { dflt : colorscales . Viridis }
135
- ) ,
136
- autocolorscale : extendDeep (
137
- { } ,
138
- colorAttributes ( 'line' ) . autocolorscale ,
139
- {
140
- dflt : false ,
141
- description : [
142
- 'Has an effect only if line.color` is set to a numerical array.' ,
143
- 'Determines whether the colorscale is a default palette (`autocolorscale: true`)' ,
144
- 'or the palette determined by `line.colorscale`.' ,
145
- 'In case `colorscale` is unspecified or `autocolorscale` is true, the default ' ,
146
- 'palette will be chosen according to whether numbers in the `color` array are' ,
147
- 'all positive, all negative or mixed.' ,
148
- 'The default value is false, so that `parcoords` colorscale can default to `Viridis`.'
149
- ] . join ( ' ' )
150
- }
151
- )
152
128
129
+ colorscale : { dflt : colorscales . Viridis } ,
130
+ autocolorscale : {
131
+ dflt : false ,
132
+ description : [
133
+ 'Has an effect only if line.color` is set to a numerical array.' ,
134
+ 'Determines whether the colorscale is a default palette (`autocolorscale: true`)' ,
135
+ 'or the palette determined by `line.colorscale`.' ,
136
+ 'In case `colorscale` is unspecified or `autocolorscale` is true, the default ' ,
137
+ 'palette will be chosen according to whether numbers in the `color` array are' ,
138
+ 'all positive, all negative or mixed.' ,
139
+ 'The default value is false, so that `parcoords` colorscale can default to `Viridis`.'
140
+ ] . join ( ' ' )
141
+ }
153
142
}
154
143
) ,
155
144
0 commit comments