Sha256: bc0e8f801078ba50971fbac7b5984993ef184d61ff40a67248f95c7da944fcbe

Contents?: true

Size: 1.6 KB

Versions: 39

Compression:

Stored size: 1.6 KB

Contents

/**
* Theme: Ubold Admin Template
* Author: Coderthemes
* Easy pie chart
*/

!function($) {
    "use strict";

    var EasyPieChart = function() {};

    EasyPieChart.prototype.init = function() {
    	//initializing various types of easy pie charts
    	$('.easy-pie-chart-1').easyPieChart({
			easing: 'easeOutBounce',
			barColor : '$brand-primary',
			lineWidth: 10,
			animate: 1000,
            scaleColor: false,
            lineCap: 'square',
            trackColor: '#e5e5e5',
			onStep: function(from, to, percent) {
				$(this.el).find('.percent').text(Math.round(percent));
			}
		});
		$('.easy-pie-chart-2').easyPieChart({
			easing: 'easeOutBounce',
			barColor : '#fb6d9d',
			lineWidth: 10,
			trackColor : false,
			lineCap : 'butt',
			onStep: function(from, to, percent) {
				$(this.el).find('.percent').text(Math.round(percent));
			}
		});
		$('.easy-pie-chart-3').easyPieChart({
			easing: 'easeOutBounce',
			barColor : '$brand-info',
			lineWidth: 10,
			lineCap : 'square',
			scaleColor: "transparent",
			onStep: function(from, to, percent) {
				$(this.el).find('.percent').text(Math.round(percent));
			}
		});
		$('.easy-pie-chart-4').easyPieChart({
			easing: 'easeOutBounce',
			barColor : '#5fbeaa',
			lineWidth: 10,
			onStep: function(from, to, percent) {
				$(this.el).find('.percent').text(Math.round(percent));
			}
		});
    },
    //init
    $.EasyPieChart = new EasyPieChart, $.EasyPieChart.Constructor = EasyPieChart
}(window.jQuery),

//initializing
function($) {
    "use strict";
    $.EasyPieChart.init()
}(window.jQuery);

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
wbase-0.3.20 lib/vendor/admin/easy-pie-chart.init.js
wbase-0.3.19 lib/vendor/admin/easy-pie-chart.init.js
wbase-0.3.18 lib/vendor/admin/easy-pie-chart.init.js
wbase-0.3.17 lib/vendor/admin/easy-pie-chart.init.js
wbase-0.3.16 lib/vendor/admin/easy-pie-chart.init.js
wbase-0.3.15 lib/vendor/admin/easy-pie-chart.init.js
wbase-0.3.14 lib/vendor/admin/easy-pie-chart.init.js
wbase-0.3.13 lib/vendor/admin/easy-pie-chart.init.js
wbase-0.3.12 lib/vendor/admin/easy-pie-chart.init.js
wbase-0.3.11 lib/vendor/admin/easy-pie-chart.init.js
wbase-0.3.10 lib/vendor/admin/easy-pie-chart.init.js
wbase-0.3.9 lib/vendor/admin/easy-pie-chart.init.js
wbase-0.3.8 lib/vendor/admin/easy-pie-chart.init.js
wbase-0.3.7 lib/vendor/admin/easy-pie-chart.init.js
wbase-0.3.6 lib/vendor/admin/easy-pie-chart.init.js
wbase-0.3.5 lib/vendor/admin/easy-pie-chart.init.js
wbase-0.3.4 lib/vendor/admin/easy-pie-chart.init.js
wbase-0.3.3 lib/vendor/admin/easy-pie-chart.init.js
wbase-0.3.2 lib/vendor/admin/easy-pie-chart.init.js
wbase-0.3.1 lib/vendor/admin/easy-pie-chart.init.js