lib/ui/charting/js_charting.js
function(properties) {
            var key, newKey,
                remapped = {},
                axisProps = this.filterPropsByRegex(properties, /(axisX|primaryAxis|axisLabelsX|axisTitleX|gridLinesX)/);
            for(key in axisProps) {
                if(axisProps.hasOwnProperty(key)) {
                    if(!this.xAxisKeyIsTrumped(key, properties)) {
                        newKey = key.replace(/(axisX|primaryAxis)/, "axis");
                        newKey = newKey.replace(/axisLabelsX/, "axisLabels");
                        newKey = newKey.replace(/axisTitleX/, "axisTitle");
                        newKey = newKey.replace(/gridLinesX/, "gridLines");
                        remapped[newKey] = axisProps[key];
                    }
                }
            }
            return remapped;
        }
function(properties) {
            var key, newKey,
                remapped = {},
                axisProps = this.filterPropsByRegex(properties, /(axisX|primaryAxis|axisLabelsX|axisTitleX|gridLinesX)/);
            for(key in axisProps) {
                if(axisProps.hasOwnProperty(key)) {
                    if(!this.xAxisKeyIsTrumped(key, properties)) {
                        newKey = key.replace(/(axisX|primaryAxis)/, "axis");
                        newKey = newKey.replace(/axisLabelsX/, "axisLabels");
                        newKey = newKey.replace(/axisTitleX/, "axisTitle");
                        newKey = newKey.replace(/gridLinesX/, "gridLines");
                        remapped[newKey] = axisProps[key];
                    }
                }
            }
            return remapped;
        }
function ( properties ) { var key , newKey , remapped = { } , axisProps = this . filterPropsByRegex ( properties , / (axisX|primaryAxis|axisLabelsX|axisTitleX|gridLinesX) / ) ; for ( key in axisProps ) { if ( axisProps . hasOwnProperty ( key ) ) { if ( ! this . xAxisKeyIsTrumped ( key , properties ) ) { newKey = key . replace ( / (axisX|primaryAxis) / , "axis" ) ; newKey = newKey . replace ( / axisLabelsX / , "axisLabels" ) ; newKey = newKey . replace ( / axisTitleX / , "axisTitle" ) ; newKey = newKey . replace ( / gridLinesX / , "gridLines" ) ; remapped [ newKey ] = axisProps [ key ] ; } } } return remapped ; }
returns a map of properties that apply either to the x-axis or to x-axis labels all axis-related keys are renamed to 'axis' and all axis-label-related keys are renamed to 'axisLabels'
returns a map of properties that apply either to the x - axis or to x - axis labels all axis - related keys are renamed to axis and all axis - label - related keys are renamed to axisLabels