@@ -17,68 +17,88 @@ var extendFlat = require('../../lib/extend').extendFlat;
1717var templatedArray = require ( '../../plot_api/plot_template' ) . templatedArray ;
1818
1919module . 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+ } ,
2149
2250 labelfont : fontAttrs ( {
23- editType : 'calc ' ,
51+ editType : 'plot ' ,
2452 description : 'Sets the font for the `dimension` labels.'
2553 } ) ,
2654 tickfont : fontAttrs ( {
27- editType : 'calc ' ,
55+ editType : 'plot ' ,
2856 description : 'Sets the font for the `dimension` tick values.'
2957 } ) ,
3058 rangefont : fontAttrs ( {
31- editType : 'calc ' ,
59+ editType : 'plot ' ,
3260 description : 'Sets the font for the `dimension` range values.'
3361 } ) ,
3462
3563 dimensions : templatedArray ( 'dimension' , {
3664 label : {
3765 valType : 'string' ,
3866 role : 'info' ,
39- editType : 'calc ' ,
67+ editType : 'plot ' ,
4068 description : 'The shown name of the dimension.'
4169 } ,
4270 // TODO: better way to determine ordinal vs continuous axes,
4371 // so users can use tickvals/ticktext with a continuous axis.
4472 tickvals : extendFlat ( { } , axesAttrs . tickvals , {
45- editType : 'calc ' ,
73+ editType : 'plot ' ,
4674 description : [
4775 'Sets the values at which ticks on this axis appear.'
4876 ] . join ( ' ' )
4977 } ) ,
5078 ticktext : extendFlat ( { } , axesAttrs . ticktext , {
51- editType : 'calc ' ,
79+ editType : 'plot ' ,
5280 description : [
5381 'Sets the text displayed at the ticks position via `tickvals`.'
5482 ] . join ( ' ' )
5583 } ) ,
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+ } ) ,
6787 visible : {
6888 valType : 'boolean' ,
6989 dflt : true ,
7090 role : 'info' ,
71- editType : 'calc ' ,
91+ editType : 'plot ' ,
7292 description : 'Shows the dimension when set to `true` (the default). Hides the dimension for `false`.'
7393 } ,
7494 range : {
7595 valType : 'info_array' ,
7696 role : 'info' ,
7797 items : [
78- { valType : 'number' , editType : 'calc ' } ,
79- { valType : 'number' , editType : 'calc ' }
98+ { valType : 'number' , editType : 'plot ' } ,
99+ { valType : 'number' , editType : 'plot ' }
80100 ] ,
81- editType : 'calc ' ,
101+ editType : 'plot ' ,
82102 description : [
83103 'The domain range that represents the full, shown axis extent. Defaults to the `values` extent.' ,
84104 'Must be an array of `[fromValue, toValue]` with finite numbers as elements.'
@@ -90,10 +110,10 @@ module.exports = {
90110 freeLength : true ,
91111 dimensions : '1-2' ,
92112 items : [
93- { valType : 'number' , editType : 'calc ' } ,
94- { valType : 'number' , editType : 'calc ' }
113+ { valType : 'number' , editType : 'plot ' } ,
114+ { valType : 'number' , editType : 'plot ' }
95115 ] ,
96- editType : 'calc ' ,
116+ editType : 'plot ' ,
97117 description : [
98118 'The domain range to which the filter on the dimension is constrained. Must be an array' ,
99119 'of `[fromValue, toValue]` with `fromValue <= toValue`, or if `multiselect` is not' ,
@@ -104,7 +124,7 @@ module.exports = {
104124 valType : 'boolean' ,
105125 dflt : true ,
106126 role : 'info' ,
107- editType : 'calc ' ,
127+ editType : 'plot ' ,
108128 description : 'Do we allow multiple selection ranges or just a single range?'
109129 } ,
110130 values : {
0 commit comments