Skip to content
Snippets Groups Projects
Commit 5e37e722 authored by Jonathan Foucher's avatar Jonathan Foucher
Browse files

Merge branch 'feature/seb/correctifs10012023' into develop

parents 6541ab5c 0d4c743a
No related branches found
No related tags found
No related merge requests found
<template> <template>
<Bar v-if="loaded && chartData" :chart-data="chartData" :chart-options="options" /> <Bar v-if="loaded && chartData" :chart-data="chartData" :chart-options="options" style="max-width:500px!important;max-height:500px!important;margin: auto;"/>
<div v-else class=" text-center"> <div v-else class=" text-center">
<i class="fas fa-spin fa-spinner"></i> <i class="fas fa-spin fa-spinner"></i>
</div> </div>
...@@ -21,9 +21,15 @@ export default { ...@@ -21,9 +21,15 @@ export default {
return { return {
loaded: this.$store.state.graphs[this.evaluation.id] && this.$store.state.graphs[this.evaluation.id].risks && this.$store.state.graphs[this.evaluation.id].futurerisks, loaded: this.$store.state.graphs[this.evaluation.id] && this.$store.state.graphs[this.evaluation.id].risks && this.$store.state.graphs[this.evaluation.id].futurerisks,
options: { options: {
responsive: true,
plugins: { plugins: {
legend: { legend: {
display: true display: true,
labels: {
font: {
size: 10
}
}
}, },
tooltip: { tooltip: {
callbacks: { callbacks: {
...@@ -50,7 +56,10 @@ export default { ...@@ -50,7 +56,10 @@ export default {
autoSkip: false, autoSkip: false,
maxRotation: 40, maxRotation: 40,
minRotation: 40, minRotation: 40,
} font: {
size: 9
},
},
}, },
y: { y: {
min: 0, min: 0,
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
</div> </div>
</div> </div>
<div class="card-body"> <div class="card-body">
<FutureRiskGraph :evaluation="evaluation" /> <FutureRiskGraph :evaluation="evaluation"/>
</div> </div>
</div> </div>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment