Set fixed height for chart and disable aspect ratio maintenance
All checks were successful
SteamWarCI Build successful
All checks were successful
SteamWarCI Build successful
This commit is contained in:
@ -79,6 +79,8 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
|
maintainAspectRatio: false,
|
||||||
|
|
||||||
scales: {
|
scales: {
|
||||||
x: {
|
x: {
|
||||||
type: "time",
|
type: "time",
|
||||||
@ -105,5 +107,5 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<canvas bind:this={canvas}></canvas>
|
<canvas height="500" bind:this={canvas}></canvas>
|
||||||
</div>
|
</div>
|
||||||
Reference in New Issue
Block a user