Primer Commit
This commit is contained in:
31
dist/js/pages/c3-chart/bar-pie/c3-pie.js
vendored
Normal file
31
dist/js/pages/c3-chart/bar-pie/c3-pie.js
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
/*************************************************************************************/
|
||||
// -->Template Name: Bootstrap Press Admin
|
||||
// -->Author: Themedesigner
|
||||
// -->Email: niravjoshi87@gmail.com
|
||||
// -->File: c3_chart_JS
|
||||
/*************************************************************************************/
|
||||
$(function() {
|
||||
var o = c3.generate({
|
||||
bindto: "#pie-chart",
|
||||
color: { pattern: ["#2962FF", "#4fc3f7", "#a1aab2"] },
|
||||
data: {
|
||||
columns: [
|
||||
["option1", 50],
|
||||
["option2", 100]
|
||||
],
|
||||
type: "pie",
|
||||
onclick: function(o, n) { console.log("onclick", o, n) },
|
||||
onmouseover: function(o, n) { console.log("onmouseover", o, n) },
|
||||
onmouseout: function(o, n) { console.log("onmouseout", o, n) }
|
||||
}
|
||||
});
|
||||
setTimeout(function() {
|
||||
o.load({
|
||||
columns: [
|
||||
["iphone", .2, .2, .2, .2, .2, .4, .3, .2, .2, .1, .2, .2, .1, .1, .2, .4, .4, .3, .3, .3, .2, .4, .2, .5, .2, .2, .4, .2, .2, .2, .2, .4, .1, .2, .2, .2, .2, .1, .2, .2, .3, .3, .2, .6, .4, .3, .2, .2, .2, .2],
|
||||
["windows", 1.4, 1.5, 1.5, 1.3, 1.5, 1.3, 1.6, 1, 1.3, 1.4, 1, 1.5, 1, 1.4, 1.3, 1.4, 1.5, 1, 1.5, 1.1, 1.8, 1.3, 1.5, 1.2, 1.3, 1.4, 1.4, 1.7, 1.5, 1, 1.1, 1, 1.2, 1.6, 1.5, 1.6, 1.5, 1.3, 1.3, 1.3, 1.2, 1.4, 1.2, 1, 1.3, 1.2, 1.3, 1.3, 1.1, 1.3],
|
||||
["android", 2.5, 1.9, 2.1, 1.8, 2.2, 2.1, 1.7, 1.8, 1.8, 2.5, 2, 1.9, 2.1, 2, 2.4, 2.3, 1.8, 2.2, 2.3, 1.5, 2.3, 2, 2, 1.8, 2.1, 1.8, 1.8, 1.8, 2.1, 1.6, 1.9, 2, 2.2, 1.5, 1.4, 2.3, 2.4, 1.8, 1.8, 2.1, 2.4, 2.3, 1.9, 2.3, 2.5, 2.3, 1.9, 2, 2.3, 1.8]
|
||||
]
|
||||
})
|
||||
}, 1500), setTimeout(function() { o.unload({ ids: "option1" }), o.unload({ ids: "option2" }) }, 2500)
|
||||
});
|
||||
Reference in New Issue
Block a user