@@ -174,8 +174,8 @@ module.exports = function calc(gd, trace) {
174
174
var cats = dimensionModels [ d ] . categories ;
175
175
176
176
if ( cats [ catInd ] === undefined ) {
177
- var catValue = trace . dimensions [ containerInd ] . categoryarray [ catInd ] ;
178
- var catLabel = trace . dimensions [ containerInd ] . ticktext [ catInd ] ;
177
+ var catValue = trace . dimensions [ containerInd ] . _categoryarray [ catInd ] ;
178
+ var catLabel = trace . dimensions [ containerInd ] . _ticktext [ catInd ] ;
179
179
cats [ catInd ] = createCategoryModel ( d , catInd , catValue , catLabel ) ;
180
180
}
181
181
@@ -480,19 +480,19 @@ function validateDimensionDisplayInds(trace) {
480
480
function validateCategoryProperties ( dim , uniqueInfoDim ) {
481
481
482
482
// Update categoryarray
483
- dim . categoryarray = uniqueInfoDim . uniqueValues ;
483
+ dim . _categoryarray = uniqueInfoDim . uniqueValues ;
484
484
485
485
// Handle ticktext
486
486
if ( dim . ticktext === null || dim . ticktext === undefined ) {
487
- dim . ticktext = [ ] ;
487
+ dim . _ticktext = [ ] ;
488
488
} else {
489
489
// Shallow copy to avoid modifying input array
490
- dim . ticktext = dim . ticktext . slice ( ) ;
490
+ dim . _ticktext = dim . ticktext . slice ( ) ;
491
491
}
492
492
493
493
// Extend ticktext with elements from uniqueInfoDim.uniqueValues
494
- for ( var i = dim . ticktext . length ; i < uniqueInfoDim . uniqueValues . length ; i ++ ) {
495
- dim . ticktext . push ( uniqueInfoDim . uniqueValues [ i ] ) ;
494
+ for ( var i = dim . _ticktext . length ; i < uniqueInfoDim . uniqueValues . length ; i ++ ) {
495
+ dim . _ticktext . push ( uniqueInfoDim . uniqueValues [ i ] ) ;
496
496
}
497
497
}
498
498
0 commit comments