@@ -17,68 +17,88 @@ var extendFlat = require('../../lib/extend').extendFlat;
17
17
var templatedArray = require ( '../../plot_api/plot_template' ) . templatedArray ;
18
18
19
19
module . exports = {
20
- domain : domainAttrs ( { name : 'parcoords' , trace : true , editType : 'calc' } ) ,
20
+ domain : domainAttrs ( { name : 'parcoords' , trace : true , editType : 'plot' } ) ,
21
+
22
+ labelangle : {
23
+ valType : 'angle' ,
24
+ dflt : 0 ,
25
+ role : 'info' ,
26
+ editType : 'plot' ,
27
+ description : [
28
+ 'Sets the angle of the labels with respect to the horizontal.' ,
29
+ 'For example, a `tickangle` of -90 draws the labels vertically.' ,
30
+ 'Tilted labels with *labelangle* may be positioned better' ,
31
+ 'inside margins when `labelposition` is set to *bottom*.'
32
+ ] . join ( ' ' )
33
+ } ,
34
+
35
+ labelside : {
36
+ valType : 'enumerated' ,
37
+ role : 'info' ,
38
+ values : [ 'top' , 'bottom' ] ,
39
+ dflt : 'top' ,
40
+ editType : 'plot' ,
41
+ description : [
42
+ 'Specifies the location of the `label`.' ,
43
+ '*top* positions labels above, next to the title' ,
44
+ '*bottom* positions labels below the graph' ,
45
+ 'Tilted labels with *labelangle* may be positioned better' ,
46
+ 'inside margins when `labelposition` is set to *bottom*.'
47
+ ] . join ( ' ' )
48
+ } ,
21
49
22
50
labelfont : fontAttrs ( {
23
- editType : 'calc ' ,
51
+ editType : 'plot ' ,
24
52
description : 'Sets the font for the `dimension` labels.'
25
53
} ) ,
26
54
tickfont : fontAttrs ( {
27
- editType : 'calc ' ,
55
+ editType : 'plot ' ,
28
56
description : 'Sets the font for the `dimension` tick values.'
29
57
} ) ,
30
58
rangefont : fontAttrs ( {
31
- editType : 'calc ' ,
59
+ editType : 'plot ' ,
32
60
description : 'Sets the font for the `dimension` range values.'
33
61
} ) ,
34
62
35
63
dimensions : templatedArray ( 'dimension' , {
36
64
label : {
37
65
valType : 'string' ,
38
66
role : 'info' ,
39
- editType : 'calc ' ,
67
+ editType : 'plot ' ,
40
68
description : 'The shown name of the dimension.'
41
69
} ,
42
70
// TODO: better way to determine ordinal vs continuous axes,
43
71
// so users can use tickvals/ticktext with a continuous axis.
44
72
tickvals : extendFlat ( { } , axesAttrs . tickvals , {
45
- editType : 'calc ' ,
73
+ editType : 'plot ' ,
46
74
description : [
47
75
'Sets the values at which ticks on this axis appear.'
48
76
] . join ( ' ' )
49
77
} ) ,
50
78
ticktext : extendFlat ( { } , axesAttrs . ticktext , {
51
- editType : 'calc ' ,
79
+ editType : 'plot ' ,
52
80
description : [
53
81
'Sets the text displayed at the ticks position via `tickvals`.'
54
82
] . join ( ' ' )
55
83
} ) ,
56
- tickformat : {
57
- valType : 'string' ,
58
- dflt : '3s' ,
59
- role : 'style' ,
60
- editType : 'calc' ,
61
- description : [
62
- 'Sets the tick label formatting rule using d3 formatting mini-language' ,
63
- 'which is similar to those of Python. See' ,
64
- 'https://github.com/d3/d3-format/blob/master/README.md#locale_format'
65
- ] . join ( ' ' )
66
- } ,
84
+ tickformat : extendFlat ( { } , axesAttrs . tickformat , {
85
+ editType : 'plot'
86
+ } ) ,
67
87
visible : {
68
88
valType : 'boolean' ,
69
89
dflt : true ,
70
90
role : 'info' ,
71
- editType : 'calc ' ,
91
+ editType : 'plot ' ,
72
92
description : 'Shows the dimension when set to `true` (the default). Hides the dimension for `false`.'
73
93
} ,
74
94
range : {
75
95
valType : 'info_array' ,
76
96
role : 'info' ,
77
97
items : [
78
- { valType : 'number' , editType : 'calc ' } ,
79
- { valType : 'number' , editType : 'calc ' }
98
+ { valType : 'number' , editType : 'plot ' } ,
99
+ { valType : 'number' , editType : 'plot ' }
80
100
] ,
81
- editType : 'calc ' ,
101
+ editType : 'plot ' ,
82
102
description : [
83
103
'The domain range that represents the full, shown axis extent. Defaults to the `values` extent.' ,
84
104
'Must be an array of `[fromValue, toValue]` with finite numbers as elements.'
@@ -90,10 +110,10 @@ module.exports = {
90
110
freeLength : true ,
91
111
dimensions : '1-2' ,
92
112
items : [
93
- { valType : 'number' , editType : 'calc ' } ,
94
- { valType : 'number' , editType : 'calc ' }
113
+ { valType : 'number' , editType : 'plot ' } ,
114
+ { valType : 'number' , editType : 'plot ' }
95
115
] ,
96
- editType : 'calc ' ,
116
+ editType : 'plot ' ,
97
117
description : [
98
118
'The domain range to which the filter on the dimension is constrained. Must be an array' ,
99
119
'of `[fromValue, toValue]` with `fromValue <= toValue`, or if `multiselect` is not' ,
@@ -104,7 +124,7 @@ module.exports = {
104
124
valType : 'boolean' ,
105
125
dflt : true ,
106
126
role : 'info' ,
107
- editType : 'calc ' ,
127
+ editType : 'plot ' ,
108
128
description : 'Do we allow multiple selection ranges or just a single range?'
109
129
} ,
110
130
values : {
0 commit comments