<!-- CHARTJS JS -->
<script src="../assets/plugins/chart/Chart.bundle.js"></script>
<script src="../assets/js/chart.js"></script>
Below js is in chart.js(assets/js/chart.js). Every chart has unique I'ds, Based on id's or Classes you can Search the charts in chart.js file
/*LIne-Chart */
var ctx = document.getElementById("chartLine").getContext('2d');
var myChart = new Chart(ctx, {
type: 'line',
data: {
labels: ["Sun", "Mon", "Tus", "Wed", "Thu", "Fri", "Sat"],
datasets: [{
label: 'Profits',
data: [100, 420, 210, 420, 210, 320, 350],
borderWidth: 2,
backgroundColor: 'transparent',
borderColor: '#6259ca',
borderWidth: 3,
pointBackgroundColor: '#ffffff',
pointRadius: 2
}, {
label: 'Expenses',
data: [450, 200, 350, 250, 480, 200, 400],
borderWidth: 2,
backgroundColor: 'transparent',
borderColor: '#eb6f33',
borderWidth: 3,
pointBackgroundColor: '#ffffff',
pointRadius: 2
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
xAxes: [{
ticks: {
fontColor: "#77778e",
},
display: true,
gridLines: {
color: 'rgba(119, 119, 142, 0.2)'
}
}],
yAxes: [{
ticks: {
fontColor: "#77778e",
},
display: true,
gridLines: {
color: 'rgba(119, 119, 142, 0.2)'
},
scaleLabel: {
display: false,
labelString: 'Thousands',
fontColor: 'rgba(119, 119, 142, 0.2)'
}
}]
},
legend: {
labels: {
fontColor: "#77778e"
},
},
}
});