PTMagic/Monitor/wwwroot/assets/pages/jquery.opportunities.init.js

50 lines
991 B
JavaScript
Raw Normal View History

2018-05-22 10:11:50 +02:00
/**
* Theme: Ubold Admin
* Author: Coderthemes
* Page: opportunities
*/
!function($) {
"use strict";
var Opportunities = function() {};
Opportunities.prototype.init = function () {
//Pie Chart
c3.generate({
bindto: '#pie-chart',
data: {
columns: [
['Hot', 46],
['Cold', 24],
['In-progress', 46],
['Lost', 10],
['Won', 30]
],
type : 'pie'
},
color: {
pattern: ["#34d3eb", "#7266ba", "#ffbd4a", "#f05050", "#81c868"]
},
pie: {
label: {
show: false
}
}
});
},
$.Opportunities = new Opportunities, $.Opportunities.Constructor = Opportunities
}(window.jQuery),
//initializing
function($) {
"use strict";
$.Opportunities.init()
}(window.jQuery);