Primer Commit
This commit is contained in:
20
dist/js/pages/c3-chart/axis/c3-category-axis.js
vendored
Normal file
20
dist/js/pages/c3-chart/axis/c3-category-axis.js
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
/*************************************************************************************/
|
||||
// -->Template Name: Bootstrap Press Admin
|
||||
// -->Author: Themedesigner
|
||||
// -->Email: niravjoshi87@gmail.com
|
||||
// -->File: c3_chart_JS
|
||||
/*************************************************************************************/
|
||||
$(function() {
|
||||
var t = c3.generate({
|
||||
bindto: "#category-axis",
|
||||
size: { height: 400 },
|
||||
color: { pattern: ["#2962FF", "#4fc3f7"] },
|
||||
data: {
|
||||
columns: [
|
||||
["year", 50, 250, 100, 400, 150, 250, 50, 100, 250]
|
||||
]
|
||||
},
|
||||
axis: { x: { type: "year", categories: ["2001", "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009"] } },
|
||||
grid: { y: { show: !0 } }
|
||||
});
|
||||
});
|
||||
22
dist/js/pages/c3-chart/axis/c3-rotated-axis.js
vendored
Normal file
22
dist/js/pages/c3-chart/axis/c3-rotated-axis.js
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
/*************************************************************************************/
|
||||
// -->Template Name: Bootstrap Press Admin
|
||||
// -->Author: Themedesigner
|
||||
// -->Email: niravjoshi87@gmail.com
|
||||
// -->File: c3_chart_JS
|
||||
/*************************************************************************************/
|
||||
$(function() {
|
||||
var a = c3.generate({
|
||||
bindto: "#rotated-axis",
|
||||
size: { height: 400 },
|
||||
color: { pattern: ["#4fc3f7", "#2962FF"] },
|
||||
data: {
|
||||
columns: [
|
||||
["data1", 50, 250, 90, 400, 300, 150],
|
||||
["data2", 30, 100, 85, 50, 15, 25]
|
||||
],
|
||||
types: { data1: "bar" }
|
||||
},
|
||||
axis: { rotated: !0 },
|
||||
grid: { y: { show: !0 } }
|
||||
});
|
||||
});
|
||||
20
dist/js/pages/c3-chart/axis/c3-tick-culling.js
vendored
Normal file
20
dist/js/pages/c3-chart/axis/c3-tick-culling.js
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
/*************************************************************************************/
|
||||
// -->Template Name: Bootstrap Press Admin
|
||||
// -->Author: Themedesigner
|
||||
// -->Email: niravjoshi87@gmail.com
|
||||
// -->File: c3_chart_JS
|
||||
/*************************************************************************************/
|
||||
$(function() {
|
||||
var i = c3.generate({
|
||||
bindto: "#tick-culling",
|
||||
size: { height: 400 },
|
||||
color: { pattern: ["#4fc3f7", "#E91E63"] },
|
||||
data: {
|
||||
columns: [
|
||||
["options", 30, 200, 100, 400, 150, 250, 30, 200, 100, 400, 150, 250, 30, 200, 100, 400, 150, 250, 200, 100, 400, 150, 250]
|
||||
]
|
||||
},
|
||||
axis: { x: { type: "category", tick: { culling: { max: 4 } } } },
|
||||
grid: { y: { show: !0 } }
|
||||
});
|
||||
});
|
||||
23
dist/js/pages/c3-chart/axis/c3-tick-fitting.js
vendored
Normal file
23
dist/js/pages/c3-chart/axis/c3-tick-fitting.js
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
/*************************************************************************************/
|
||||
// -->Template Name: Bootstrap Press Admin
|
||||
// -->Author: Themedesigner
|
||||
// -->Email: niravjoshi87@gmail.com
|
||||
// -->File: c3_chart_JS
|
||||
/*************************************************************************************/
|
||||
$(function() {
|
||||
var i = c3.generate({
|
||||
bindto: "#tick-fitting",
|
||||
size: { height: 400 },
|
||||
color: { pattern: ["#2962FF", "#E91E63"] },
|
||||
data: {
|
||||
x: "x",
|
||||
columns: [
|
||||
["x", "2018-01-31", "2018-02-31", "2018-03-31", "2018-04-28"],
|
||||
["days", 150, 400, 100, 30]
|
||||
|
||||
]
|
||||
},
|
||||
axis: { x: { type: "timeseries", tick: { fit: !0, format: "%e %b %y" } } },
|
||||
grid: { y: { show: !0 } }
|
||||
});
|
||||
});
|
||||
25
dist/js/pages/c3-chart/axis/c3-timezone.js
vendored
Normal file
25
dist/js/pages/c3-chart/axis/c3-timezone.js
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
/*************************************************************************************/
|
||||
// -->Template Name: Bootstrap Press Admin
|
||||
// -->Author: Themedesigner
|
||||
// -->Email: niravjoshi87@gmail.com
|
||||
// -->File: c3_chart_JS
|
||||
/*************************************************************************************/
|
||||
$(function() {
|
||||
var t = c3.generate({
|
||||
bindto: "#axis-timezone",
|
||||
size: { height: 400 },
|
||||
color: { pattern: ["#2962FF", "#4fc3f7"] },
|
||||
data: {
|
||||
x: "x",
|
||||
xFormat: "%Y",
|
||||
columns: [
|
||||
["x", "2015", "2014", "2013", "2012", "2011", "2010"],
|
||||
["option1", 250, 150, 400, 100, 200, 30],
|
||||
["option2", 350, 250, 500, 200, 340, 130]
|
||||
|
||||
]
|
||||
},
|
||||
axis: { x: { type: "timeseries", localtime: !1, tick: { format: "%Y-%m-%d %H:%M:%S" } } },
|
||||
grid: { y: { show: !0 } }
|
||||
});
|
||||
});
|
||||
20
dist/js/pages/c3-chart/axis/c3-y-axis-range.js
vendored
Normal file
20
dist/js/pages/c3-chart/axis/c3-y-axis-range.js
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
/*************************************************************************************/
|
||||
// -->Template Name: Bootstrap Press Admin
|
||||
// -->Author: Themedesigner
|
||||
// -->Email: niravjoshi87@gmail.com
|
||||
// -->File: c3_chart_JS
|
||||
/*************************************************************************************/
|
||||
$(function() {
|
||||
var n = c3.generate({
|
||||
bindto: "#range-y-axis",
|
||||
size: { height: 400 },
|
||||
color: { pattern: ["#4fc3f7", "#E91E63"] },
|
||||
data: {
|
||||
columns: [
|
||||
["Option", 250, 100, 400, 100, 200, 30]
|
||||
]
|
||||
},
|
||||
axis: { y: { max: 400, min: -400 } },
|
||||
grid: { y: { show: !0 } }
|
||||
});
|
||||
});
|
||||
20
dist/js/pages/c3-chart/axis/c3-y-axis.js
vendored
Normal file
20
dist/js/pages/c3-chart/axis/c3-y-axis.js
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
/*************************************************************************************/
|
||||
// -->Template Name: Bootstrap Press Admin
|
||||
// -->Author: Themedesigner
|
||||
// -->Email: niravjoshi87@gmail.com
|
||||
// -->File: c3_chart_JS
|
||||
/*************************************************************************************/
|
||||
$(function() {
|
||||
var o = c3.generate({
|
||||
bindto: "#y-axis",
|
||||
size: { height: 400 },
|
||||
color: { pattern: ["#2962FF", "#E91E63"] },
|
||||
data: {
|
||||
columns: [
|
||||
["Profit", 2500, 150, 1000, 100, 500, 30]
|
||||
]
|
||||
},
|
||||
axis: { y: { tick: { format: d3.format("$,") } } },
|
||||
grid: { y: { show: !0 } }
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user