client/splunk.ui.charting.js
function createElement(tag, attribs, styles, parent, nopad) {
	var el = doc.createElement(tag);
	if (attribs) {
		extend(el, attribs);
	}
	if (nopad) {
		css(el, {padding: 0, border: NONE, margin: 0});
	}
	if (styles) {
		css(el, styles);
	}
	if (parent) {
		parent.appendChild(el);
	}
	return el;
}
function createElement(tag, attribs, styles, parent, nopad) {
	var el = doc.createElement(tag);
	if (attribs) {
		extend(el, attribs);
	}
	if (nopad) {
		css(el, {padding: 0, border: NONE, margin: 0});
	}
	if (styles) {
		css(el, styles);
	}
	if (parent) {
		parent.appendChild(el);
	}
	return el;
}
function createElement ( tag , attribs , styles , parent , nopad ) { var el = doc . createElement ( tag ) ; if ( attribs ) { extend ( el , attribs ) ; } if ( nopad ) { css ( el , { padding : 0 , border : NONE , margin : 0 } ) ; } if ( styles ) { css ( el , styles ) ; } if ( parent ) { parent . appendChild ( el ) ; } return el ; }
Utility function to create element with attributes and styles
@param {Object} tag
@param {Object} attribs
@param {Object} styles
@param {Object} parent
@param {Object} nopad
Utility function to create element with attributes and styles