canvasjs-dashboard-samples/assets/economy-dashboard/economy-dashboard.js
//Bind click event on year slider

Bind click event on year slider
Bind click event on year slider
function bindClickEventToSliderScale() {
	$(".noUi-value").click( function() {
		yearSlider.noUiSlider.updateOptions({
			range: {
				'min': yearArr[0],
				'max': yearArr[yearArr.length-1]
			},
			animate: true
		});
		yearSlider.noUiSlider.set($(this).html());
		yearSlider.noUiSlider.updateOptions({
			range: {
				'min': yearArr[0],
				'max': yearArr[yearArr.length-1]
			},
			animate: false
		});
	});
	}
function bindClickEventToSliderScale ( ) { $ ( ".noUi-value" ) . click ( function ( ) { yearSlider . noUiSlider . updateOptions ( { range : { 'min' : yearArr [ 0 ] , 'max' : yearArr [ yearArr . length - 1 ] } , animate : true } ) ; yearSlider . noUiSlider . set ( $ ( this ) . html ( ) ) ; yearSlider . noUiSlider . updateOptions ( { range : { 'min' : yearArr [ 0 ] , 'max' : yearArr [ yearArr . length - 1 ] } , animate : false } ) ; } ) ; }
Bind click event on year slider
Bind click event on year slider