@@ -13,6 +13,11 @@ var axesAttrs = require('../../cartesian/layout_attributes');
1313var extendFlat = require ( '../../../lib/extend' ) . extendFlat ;
1414var overrideAll = require ( '../../../plot_api/edit_types' ) . overrideAll ;
1515
16+ var deprecationWarning = [
17+ 'Legacy polar charts are deprecated!' ,
18+ 'Please switch to *polar* subplots.'
19+ ] . join ( ' ' ) ;
20+
1621var domainAttr = extendFlat ( { } , axesAttrs . domain , {
1722 description : [
1823 'Polar chart subplots are not supported yet.' ,
@@ -26,6 +31,7 @@ function mergeAttrs(axisName, nonCommonAttrs) {
2631 valType : 'boolean' ,
2732 role : 'style' ,
2833 description : [
34+ deprecationWarning ,
2935 'Determines whether or not the line bounding this' ,
3036 axisName , 'axis' ,
3137 'will be shown on the figure.'
@@ -35,6 +41,7 @@ function mergeAttrs(axisName, nonCommonAttrs) {
3541 valType : 'boolean' ,
3642 role : 'style' ,
3743 description : [
44+ deprecationWarning ,
3845 'Determines whether or not the' ,
3946 axisName , 'axis ticks' ,
4047 'will feature tick labels.'
@@ -45,6 +52,7 @@ function mergeAttrs(axisName, nonCommonAttrs) {
4552 values : [ 'horizontal' , 'vertical' ] ,
4653 role : 'style' ,
4754 description : [
55+ deprecationWarning ,
4856 'Sets the orientation (from the paper perspective)' ,
4957 'of the' , axisName , 'axis tick labels.'
5058 ] . join ( ' ' )
@@ -54,31 +62,36 @@ function mergeAttrs(axisName, nonCommonAttrs) {
5462 min : 0 ,
5563 role : 'style' ,
5664 description : [
65+ deprecationWarning ,
5766 'Sets the length of the tick lines on this' , axisName , 'axis.'
5867 ] . join ( ' ' )
5968 } ,
6069 tickcolor : {
6170 valType : 'color' ,
6271 role : 'style' ,
6372 description : [
73+ deprecationWarning ,
6474 'Sets the color of the tick lines on this' , axisName , 'axis.'
6575 ] . join ( ' ' )
6676 } ,
6777 ticksuffix : {
6878 valType : 'string' ,
6979 role : 'style' ,
7080 description : [
81+ deprecationWarning ,
7182 'Sets the length of the tick lines on this' , axisName , 'axis.'
7283 ] . join ( ' ' )
7384 } ,
7485 endpadding : {
7586 valType : 'number' ,
76- role : 'style'
87+ role : 'style' ,
88+ description : deprecationWarning ,
7789 } ,
7890 visible : {
7991 valType : 'boolean' ,
8092 role : 'info' ,
8193 description : [
94+ deprecationWarning ,
8295 'Determines whether or not this axis will be visible.'
8396 ] . join ( ' ' )
8497 }
@@ -97,6 +110,7 @@ module.exports = overrideAll({
97110 { valType : 'number' }
98111 ] ,
99112 description : [
113+ deprecationWarning ,
100114 'Defines the start and end point of this radial axis.'
101115 ] . join ( ' ' )
102116 } ,
@@ -105,6 +119,7 @@ module.exports = overrideAll({
105119 valType : 'number' ,
106120 role : 'style' ,
107121 description : [
122+ deprecationWarning ,
108123 'Sets the orientation (an angle with respect to the origin)' ,
109124 'of the radial axis.'
110125 ] . join ( ' ' )
@@ -120,6 +135,7 @@ module.exports = overrideAll({
120135 { valType : 'number' , dflt : 360 }
121136 ] ,
122137 description : [
138+ deprecationWarning ,
123139 'Defines the start and end point of this angular axis.'
124140 ] . join ( ' ' )
125141 } ,
@@ -133,16 +149,18 @@ module.exports = overrideAll({
133149 values : [ 'clockwise' , 'counterclockwise' ] ,
134150 role : 'info' ,
135151 description : [
136- 'For polar plots only.' ,
137- 'Sets the direction corresponding to positive angles.'
152+ deprecationWarning ,
153+ 'Sets the direction corresponding to positive angles' ,
154+ 'in legacy polar charts.'
138155 ] . join ( ' ' )
139156 } ,
140157 orientation : {
141158 valType : 'angle' ,
142159 role : 'info' ,
143160 description : [
144- 'For polar plots only.' ,
145- 'Rotates the entire polar by the given angle.'
161+ deprecationWarning ,
162+ 'Rotates the entire polar by the given angle' ,
163+ 'in legacy polar charts.'
146164 ] . join ( ' ' )
147165 }
148166 }
0 commit comments