@@ -2032,7 +2032,7 @@ plots.doCalcdata = function(gd, traces) {
2032
2032
}
2033
2033
}
2034
2034
2035
- var hasCategoryAxis = initCategories ( axList ) ;
2035
+ initCategories ( axList ) ;
2036
2036
2037
2037
var hasCalcTransform = false ;
2038
2038
@@ -2101,25 +2101,11 @@ plots.doCalcdata = function(gd, traces) {
2101
2101
}
2102
2102
2103
2103
Registry . getComponentMethod ( 'fx' , 'calc' ) ( gd ) ;
2104
-
2105
- // To handle the case of components using category names as coordinates, we
2106
- // need to re-supply defaults for these objects now, after calc has
2107
- // finished populating the category mappings
2108
- // Any component that uses `Axes.coercePosition` falls into this category
2109
- if ( hasCategoryAxis ) {
2110
- var dataReferencedComponents = [ 'annotations' , 'shapes' , 'images' ] ;
2111
- for ( i = 0 ; i < dataReferencedComponents . length ; i ++ ) {
2112
- Registry . getComponentMethod ( dataReferencedComponents [ i ] , 'supplyLayoutDefaults' ) (
2113
- gd . layout , fullLayout , fullData ) ;
2114
- }
2115
- }
2116
2104
} ;
2117
2105
2106
+ // initialize the category list, if there is one, so we start over
2107
+ // to be filled in later by ax.d2c
2118
2108
function initCategories ( axList ) {
2119
- var hasCategoryAxis = false ;
2120
-
2121
- // initialize the category list, if there is one, so we start over
2122
- // to be filled in later by ax.d2c
2123
2109
for ( var i = 0 ; i < axList . length ; i ++ ) {
2124
2110
axList [ i ] . _categories = axList [ i ] . _initialCategories . slice ( ) ;
2125
2111
@@ -2128,11 +2114,7 @@ function initCategories(axList) {
2128
2114
for ( var j = 0 ; j < axList [ i ] . _categories . length ; j ++ ) {
2129
2115
axList [ i ] . _categoriesMap [ axList [ i ] . _categories [ j ] ] = j ;
2130
2116
}
2131
-
2132
- if ( axList [ i ] . type === 'category' ) hasCategoryAxis = true ;
2133
2117
}
2134
-
2135
- return hasCategoryAxis ;
2136
2118
}
2137
2119
2138
2120
plots . rehover = function ( gd ) {
0 commit comments