client/splunk.ui.charting.js
function(el, styleProperty){
            if(el.currentStyle){
                return el.currentStyle[styleProperty];
            }else if(window.getComputedStyle){
                var cssProperty = styleProperty.replace(/([A-Z])/g, "-$1").toLowerCase();
                var computedStyle = window.getComputedStyle(el, "");
                return computedStyle.getPropertyValue(cssProperty);
            }else{
                return "";
            }
        }
function(el, styleProperty){
            if(el.currentStyle){
                return el.currentStyle[styleProperty];
            }else if(window.getComputedStyle){
                var cssProperty = styleProperty.replace(/([A-Z])/g, "-$1").toLowerCase();
                var computedStyle = window.getComputedStyle(el, "");
                return computedStyle.getPropertyValue(cssProperty);
            }else{
                return "";
            }
        }
function ( el , styleProperty ) { if ( el . currentStyle ) { return el . currentStyle [ styleProperty ] ; } else if ( window . getComputedStyle ) { var cssProperty = styleProperty . replace ( / ([A-Z]) / g , "-$1" ) . toLowerCase ( ) ; var computedStyle = window . getComputedStyle ( el , "" ) ; return computedStyle . getPropertyValue ( cssProperty ) ; } else { return "" ; } }
Retrieve the computed style from a specified element.

@param el
@param styleProperty
@return The computed style value.
@type String
Retrieve the computed style from a specified element .