client/splunk.ui.charting.js
function (str, x, y) {

		var defaultChartStyle = defaultOptions.chart.style;

		return this.createElement('span')
			.attr({
				text: str,
				x: mathRound(x),
				y: mathRound(y)
			})
			.css({
				whiteSpace: 'nowrap',
				fontFamily: defaultChartStyle.fontFamily,
				fontSize: defaultChartStyle.fontSize
			});
	}
function (str, x, y) {

		var defaultChartStyle = defaultOptions.chart.style;

		return this.createElement('span')
			.attr({
				text: str,
				x: mathRound(x),
				y: mathRound(y)
			})
			.css({
				whiteSpace: 'nowrap',
				fontFamily: defaultChartStyle.fontFamily,
				fontSize: defaultChartStyle.fontSize
			});
	}
function ( str , x , y ) { var defaultChartStyle = defaultOptions . chart . style ; return this . createElement ( 'span' ) . attr ( { text : str , x : mathRound ( x ) , y : mathRound ( y ) } ) . css ( { whiteSpace : 'nowrap' , fontFamily : defaultChartStyle . fontFamily , fontSize : defaultChartStyle . fontSize } ) ; }
Create rotated and aligned text
@param {String} str
@param {Number} x
@param {Number} y
Create rotated and aligned text