mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-04-19 08:55:12 +00:00
chartjs customization
This commit is contained in:
parent
e99d910dbd
commit
703a05b18c
@ -203,23 +203,24 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
responsive: true,
|
|
||||||
plugins: {
|
|
||||||
legend: {
|
legend: {
|
||||||
display: false // Hide the legend to only show the lines
|
display: false
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
responsive: true,
|
||||||
scales: {
|
scales: {
|
||||||
x: {
|
xAxes: [{
|
||||||
display: false // Hide the X-axis labels if not needed
|
|
||||||
},
|
|
||||||
y: {
|
|
||||||
min: 0,
|
|
||||||
beginAtZero: true,
|
|
||||||
display: false,
|
display: false,
|
||||||
grid: { display: false }
|
ticks: { display: false },
|
||||||
}
|
gridLines: { display: false }
|
||||||
|
}],
|
||||||
|
yAxes: [{
|
||||||
|
display: false,
|
||||||
|
ticks: { display: false, beginAtZero: true },
|
||||||
|
gridLines: { display: false }
|
||||||
|
}]
|
||||||
},
|
},
|
||||||
|
|
||||||
animation: {
|
animation: {
|
||||||
duration: 1000
|
duration: 1000
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user