client/splunk.ui.charting.js
function Toolbar() {
		var buttons = {};

		/*jslint unparam: true*//* allow the unused param title until Toolbar rewrite*/
		function add(id, text, title, fn) {
			if (!buttons[id]) {
				var button = renderer.text(
					text,
					0,
					0
				)
				.css(options.toolbar.itemStyle)
				.align({
					align: 'right',
					x: -marginRight - 20,
					y: plotTop + 30
				})
				.on('click', fn)
				/*.on('touchstart', function(e) {
					e.stopPropagation(); // don't fire the container event
					fn();
				})*/
				.attr({
					align: 'right',
					zIndex: 20
				})
				.add();
				buttons[id] = button;
			}
		}
		/*jslint unparam: false*/

		function remove(id) {
			discardElement(buttons[id].element);
			buttons[id] = null;
		}

		// public
		return {
			add: add,
			remove: remove
		};
	}
function Toolbar() {
		var buttons = {};

		/*jslint unparam: true*//* allow the unused param title until Toolbar rewrite*/
		function add(id, text, title, fn) {
			if (!buttons[id]) {
				var button = renderer.text(
					text,
					0,
					0
				)
				.css(options.toolbar.itemStyle)
				.align({
					align: 'right',
					x: -marginRight - 20,
					y: plotTop + 30
				})
				.on('click', fn)
				/*.on('touchstart', function(e) {
					e.stopPropagation(); // don't fire the container event
					fn();
				})*/
				.attr({
					align: 'right',
					zIndex: 20
				})
				.add();
				buttons[id] = button;
			}
		}
		/*jslint unparam: false*/

		function remove(id) {
			discardElement(buttons[id].element);
			buttons[id] = null;
		}

		// public
		return {
			add: add,
			remove: remove
		};
	}
function Toolbar ( ) { var buttons = { } ; /*jslint unparam: true*/ /* allow the unused param title until Toolbar rewrite*/ function add ( id , text , title , fn ) { if ( ! buttons [ id ] ) { var button = renderer . text ( text , 0 , 0 ) . css ( options . toolbar . itemStyle ) . align ( { align : 'right' , x : - marginRight - 20 , y : plotTop + 30 } ) . on ( 'click' , fn ) /*.on('touchstart', function(e) {
					e.stopPropagation(); // don't fire the container event
					fn();
				})*/ . attr ( { align : 'right' , zIndex : 20 } ) . add ( ) ; buttons [ id ] = button ; } } /*jslint unparam: false*/ function remove ( id ) { discardElement ( buttons [ id ] . element ) ; buttons [ id ] = null ; } // public
 return { add : add , remove : remove } ; }
end Axis 
The toolbar object
end Axis The toolbar object