-
Notifications
You must be signed in to change notification settings - Fork 0
/
company-info.js
58 lines (57 loc) · 1.33 KB
/
company-info.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
var salesChart = new Chart(document.getElementById('sales-chart'), {
type: 'doughnut',
data: {
labels: ['Q1', 'Q2', 'Q3', 'Q4'],
datasets: [{
label: 'Sales',
data: [50000, 75000, 100000, 125000],
backgroundColor: ['#89CFF0', '#00FFFF', '#7DF9FF', '#4BC0C0']
}]
},
options: {
title: {
display: true,
fontSize: 12, /* adjust as needed */
text: 'Financial Year 2023 Sales'
},
plugins: {
datalabels: {
display: true
}
},
legend: {
labels: {
fontSize: 12 /* adjust as needed */
}
}
}
});
var profitChart = new Chart(document.getElementById('profit-chart'), {
type: 'line',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
datasets: [{
label: 'Net Profit',
data: [3000, 2000, 4000, 1000, 5000, 2000, 7000, 6000, 3000, 5000, 8000, 9000],
fill: false,
borderColor: '#4BC0C0',
borderWidth: 2
}]
},
options: {
title: {
display: true,
text: 'Net Profit in 2023'
},
legend: {
display: false
},
scales: {
yAxes: [{
ticks: {
beginAtZero: true
}
}]
}
}
});