html
This commit is contained in:
54
www/static/file/home/js/custom-chart.js
Normal file
54
www/static/file/home/js/custom-chart.js
Normal file
@@ -0,0 +1,54 @@
|
||||
/*=========================================================================================
|
||||
File Name: custom-chart.js
|
||||
----------------------------------------------------------------------------------------
|
||||
Item Name: Buskey - Consulting Business Template
|
||||
Version: 1.0
|
||||
Author: Validthemes
|
||||
Author URL: http://www.themeforest.net/user/validthemes
|
||||
==========================================================================================*/
|
||||
|
||||
$(function ($) {
|
||||
'use strict';
|
||||
|
||||
/*==== Line chart for business growth =====*/
|
||||
var ctx = document.getElementById("lineChart");
|
||||
var myChart = new Chart(ctx, {
|
||||
type: 'bar',
|
||||
data: {
|
||||
labels: ["1984", "2003", "2007", "2012", "2018", "2020"],
|
||||
datasets: [{
|
||||
label: 'Business Progress',
|
||||
data: [3, 5, 12, 8, 11, 19],
|
||||
backgroundColor: [
|
||||
'rgba(255, 99, 132, 0.5)',
|
||||
'rgba(54, 162, 235, 0.5)',
|
||||
'rgba(255, 206, 86, 0.5)',
|
||||
'rgba(75, 192, 192, 0.5)',
|
||||
'rgba(153, 102, 255, 0.5)',
|
||||
'rgba(12, 184, 182, 0.5)'
|
||||
],
|
||||
borderColor: [
|
||||
'rgba(255,99,132,1)',
|
||||
'rgba(54, 162, 235, 1)',
|
||||
'rgba(255, 206, 86, 1)',
|
||||
'rgba(75, 192, 192, 1)',
|
||||
'rgba(153, 102, 255, 1)',
|
||||
'rgba(12, 184, 182, 1)'
|
||||
],
|
||||
borderWidth: 2
|
||||
}]
|
||||
},
|
||||
options: {
|
||||
scales: {
|
||||
yAxes: [{
|
||||
ticks: {
|
||||
beginAtZero:true
|
||||
}
|
||||
}]
|
||||
}
|
||||
}
|
||||
});
|
||||
/*==== End line chart =====*/
|
||||
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user