html-php/js/ChartNew.js
///////// FUNCTIONS THAN CAN BE USED IN THE TEMPLATES ///////////////////////////////////////////
FUNCTIONS THAN CAN BE USED IN THE TEMPLATES
FUNCTIONS THAN CAN BE USED IN THE TEMPLATES
function roundToWithThousands(config, num, place) {
	var newval = 1 * unFormat(config, num);
	if (typeof(newval) == "number" && place != "none") {
		var roundVal;
		if (place <= 0) {
			roundVal = -place;
			newval = +(Math.round(newval + "e+" + roundVal) + "e-" + roundVal);
		} else {
			roundVal = place;
			var divval = "1e+" + roundVal;
			newval = +(Math.round(newval / divval)) * divval;
		}
	}
	newval = fmtChartJS(config, newval, "none");
	return (newval);
}
function roundToWithThousands ( config , num , place ) { var newval = 1 * unFormat ( config , num ) ; if ( typeof ( newval ) == "number" && place != "none" ) { var roundVal ; if ( place <= 0 ) { roundVal = - place ; newval = + ( Math . round ( newval + "e+" + roundVal ) + "e-" + roundVal ) ; } else { roundVal = place ; var divval = "1e+" + roundVal ; newval = + ( Math . round ( newval / divval ) ) * divval ; } } newval = fmtChartJS ( config , newval , "none" ) ; return ( newval ) ; }
FUNCTIONS THAN CAN BE USED IN THE TEMPLATES
FUNCTIONS THAN CAN BE USED IN THE TEMPLATES