IJCR
var ctx = document.getElementById("citationChart");
var citationChart = new Chart(ctx, {
type: 'bar',
data: {
labels: ["2017", "2018", "2019", "2020", "2021", "2022"],
datasets: [{
type: 'bar',
label: 'Documents',
data: [0, 2, 11, 12, 10, 7],
backgroundColor: 'rgba(255, 159, 64, 0.2)',
borderColor: 'rgba(255, 205, 86, 1)',
borderWidth: 1
}, {
type: 'line',
label: 'Citations',
data: [1, 0, 3, 13, 44, 16],
borderColor: 'rgba(54, 162, 235, 1)',
fill: false,
borderWidth: 2
}]
},
options: {
scales: {
yAxes: [{
ticks: {
beginAtZero:true
}
}]
},
tooltips: {
mode: 'index',
intersect: true
},
responsive: true,
legend : { position: 'bottom'}
}
});
var ctx = document.getElementById("statsBlock");
var statsBlock = new Chart(ctx, {
type: 'bar',
data: {
labels: ["2019", "2020", "2021", "2022"],
datasets: [{
type: 'bar',
label: 'Abstract Views',
data: [3993, 12817, 27327, 6237],
backgroundColor: 'rgba(54, 162, 235, 0.2)',
borderColor: 'rgba(65, 192, 65, 1)',
borderWidth: 1
}, {
type: 'line',
label: 'File Downloads',
data: [11139, 11937, 47591, 10229],
borderColor: 'rgba(255,99,132,1)',
fill: false,
borderWidth: 2
}]
},
options: {
responsive: true,
title: {
display: false,
text: 'Views and downloads statistics'
},
tooltips: {
mode: 'index',
intersect: true
},
legend : { position: 'bottom' }
}
});
var ctx = document.getElementById("acceptanceChart");
var acceptanceChart = new Chart(ctx, {
type: 'bar',
data: {
labels: ["2018", "2019", "2020", "2021", "2022"],
datasets: [{
label: 'Acceptance Rate',
data: [100, 92, 86, 71, 50],
backgroundColor: 'rgba(65, 192, 65, 0.2)',
borderColor: 'rgba(65, 192, 65, 1)',
borderWidth: 1
}, {
label: 'Rejection Rate',
data: [0, 8, 14, 29, 50],
backgroundColor: 'rgba(255, 99, 132, 0.2)',
borderColor: 'rgba(255,99,132,1)',
borderWidth: 1
}]
},
options: {
scales: {
xAxes: [{
stacked: true
}],
yAxes: [{
ticks: {
beginAtZero:true
},
stacked: true
}]
},
legend : { position: 'bottom'}
}
});