~week-overview proper labeling and scaling
This commit is contained in:
parent
cdd93d7e64
commit
1ae6204a40
|
@ -5,13 +5,15 @@ let week_overview = new Chart($("#overview_chart"), {
|
|||
data: {
|
||||
labels: [0, 0, 0, 0, 0],
|
||||
datasets: [{
|
||||
label: "Warenanzahl",
|
||||
label: "Kundenanzahl",
|
||||
yAxisID: 'y-axis-1',
|
||||
data: [0, 0, 0, 0, 0],
|
||||
fill: true,
|
||||
backgroundColor: 'rgba(104, 216, 154, 0.5)',
|
||||
lineTension: 0
|
||||
}, {
|
||||
label: "Einnahmen in €",
|
||||
yAxisID: 'y-axis-2',
|
||||
data: [0, 0, 0, 0, 0],
|
||||
fill: true,
|
||||
backgroundColor: 'rgba(113, 114, 231, 1)',
|
||||
|
@ -47,9 +49,25 @@ let week_overview = new Chart($("#overview_chart"), {
|
|||
display: false
|
||||
}
|
||||
}],
|
||||
yAxes: [{
|
||||
display: true
|
||||
}]
|
||||
yAxes: [
|
||||
{
|
||||
display: true,
|
||||
position: 'right',
|
||||
id: 'y-axis-1',
|
||||
scaleLabel: {
|
||||
display: true,
|
||||
labelString: 'Kundenanzahl'
|
||||
}
|
||||
},
|
||||
{
|
||||
display: true,
|
||||
id: 'y-axis-2',
|
||||
scaleLabel: {
|
||||
display: true,
|
||||
labelString: 'Einnahmen in €'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue