@@ -13,6 +13,8 @@ var axesAttrs = require('../../cartesian/layout_attributes');
13
13
var extendFlat = require ( '../../../lib/extend' ) . extendFlat ;
14
14
var overrideAll = require ( '../../../plot_api/edit_types' ) . overrideAll ;
15
15
16
+ var deprecationWarning = 'Legacy polar charts are deprecated!' ;
17
+
16
18
var domainAttr = extendFlat ( { } , axesAttrs . domain , {
17
19
description : [
18
20
'Polar chart subplots are not supported yet.' ,
@@ -26,6 +28,7 @@ function mergeAttrs(axisName, nonCommonAttrs) {
26
28
valType : 'boolean' ,
27
29
role : 'style' ,
28
30
description : [
31
+ deprecationWarning ,
29
32
'Determines whether or not the line bounding this' ,
30
33
axisName , 'axis' ,
31
34
'will be shown on the figure.'
@@ -35,6 +38,7 @@ function mergeAttrs(axisName, nonCommonAttrs) {
35
38
valType : 'boolean' ,
36
39
role : 'style' ,
37
40
description : [
41
+ deprecationWarning ,
38
42
'Determines whether or not the' ,
39
43
axisName , 'axis ticks' ,
40
44
'will feature tick labels.'
@@ -45,6 +49,7 @@ function mergeAttrs(axisName, nonCommonAttrs) {
45
49
values : [ 'horizontal' , 'vertical' ] ,
46
50
role : 'style' ,
47
51
description : [
52
+ deprecationWarning ,
48
53
'Sets the orientation (from the paper perspective)' ,
49
54
'of the' , axisName , 'axis tick labels.'
50
55
] . join ( ' ' )
@@ -54,31 +59,36 @@ function mergeAttrs(axisName, nonCommonAttrs) {
54
59
min : 0 ,
55
60
role : 'style' ,
56
61
description : [
62
+ deprecationWarning ,
57
63
'Sets the length of the tick lines on this' , axisName , 'axis.'
58
64
] . join ( ' ' )
59
65
} ,
60
66
tickcolor : {
61
67
valType : 'color' ,
62
68
role : 'style' ,
63
69
description : [
70
+ deprecationWarning ,
64
71
'Sets the color of the tick lines on this' , axisName , 'axis.'
65
72
] . join ( ' ' )
66
73
} ,
67
74
ticksuffix : {
68
75
valType : 'string' ,
69
76
role : 'style' ,
70
77
description : [
78
+ deprecationWarning ,
71
79
'Sets the length of the tick lines on this' , axisName , 'axis.'
72
80
] . join ( ' ' )
73
81
} ,
74
82
endpadding : {
75
83
valType : 'number' ,
76
- role : 'style'
84
+ role : 'style' ,
85
+ description : deprecationWarning ,
77
86
} ,
78
87
visible : {
79
88
valType : 'boolean' ,
80
89
role : 'info' ,
81
90
description : [
91
+ deprecationWarning ,
82
92
'Determines whether or not this axis will be visible.'
83
93
] . join ( ' ' )
84
94
}
@@ -97,6 +107,7 @@ module.exports = overrideAll({
97
107
{ valType : 'number' }
98
108
] ,
99
109
description : [
110
+ deprecationWarning ,
100
111
'Defines the start and end point of this radial axis.'
101
112
] . join ( ' ' )
102
113
} ,
@@ -105,6 +116,7 @@ module.exports = overrideAll({
105
116
valType : 'number' ,
106
117
role : 'style' ,
107
118
description : [
119
+ deprecationWarning ,
108
120
'Sets the orientation (an angle with respect to the origin)' ,
109
121
'of the radial axis.'
110
122
] . join ( ' ' )
@@ -120,6 +132,7 @@ module.exports = overrideAll({
120
132
{ valType : 'number' , dflt : 360 }
121
133
] ,
122
134
description : [
135
+ deprecationWarning ,
123
136
'Defines the start and end point of this angular axis.'
124
137
] . join ( ' ' )
125
138
} ,
@@ -133,16 +146,18 @@ module.exports = overrideAll({
133
146
values : [ 'clockwise' , 'counterclockwise' ] ,
134
147
role : 'info' ,
135
148
description : [
136
- 'For polar plots only.' ,
137
- 'Sets the direction corresponding to positive angles.'
149
+ deprecationWarning ,
150
+ 'Sets the direction corresponding to positive angles' ,
151
+ 'in legacy polar charts.'
138
152
] . join ( ' ' )
139
153
} ,
140
154
orientation : {
141
155
valType : 'angle' ,
142
156
role : 'info' ,
143
157
description : [
144
- 'For polar plots only.' ,
145
- 'Rotates the entire polar by the given angle.'
158
+ deprecationWarning ,
159
+ 'Rotates the entire polar by the given angle' ,
160
+ 'in legacy polar charts.'
146
161
] . join ( ' ' )
147
162
}
148
163
}
0 commit comments