You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1009 B
37 lines
1009 B
1 year ago
|
/*************************************************************************************/
|
||
|
// -->Template Name: Bootstrap Press Admin
|
||
|
// -->Author: Themedesigner
|
||
|
// -->Email: niravjoshi87@gmail.com
|
||
|
// -->File: c3_chart_JS
|
||
|
/*************************************************************************************/
|
||
|
$(function (e) {
|
||
|
// Callback that creates and populates a data table, instantiates the line chart, passes in the data and draws it.
|
||
|
var lineChart = c3.generate({
|
||
|
bindto: "#data-from-url",
|
||
|
size: { height: 400 },
|
||
|
color: {
|
||
|
pattern: ["#1e88e5", "#00acc1", "#fc4b6c"],
|
||
|
},
|
||
|
|
||
|
// Create the data table.
|
||
|
data: {
|
||
|
url: "../../dist/js/pages/c3-chart/c3_test.csv",
|
||
|
},
|
||
|
grid: {
|
||
|
y: {
|
||
|
show: true,
|
||
|
},
|
||
|
},
|
||
|
});
|
||
|
|
||
|
// Instantiate and draw our chart, passing in some options.
|
||
|
setTimeout(function () {
|
||
|
c3.generate({
|
||
|
data: {
|
||
|
url: "../../dist/js/pages/c3-chart/c3_test.json",
|
||
|
mimeType: "json",
|
||
|
},
|
||
|
});
|
||
|
}, 1000);
|
||
|
});
|