Skip to content

Commit

Permalink
improve donut styling
Browse files Browse the repository at this point in the history
  • Loading branch information
ab-smith committed Jul 14, 2024
1 parent 43de0c8 commit c5c942e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
7 changes: 3 additions & 4 deletions frontend/src/lib/components/Chart/DonutChart.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@
}
},
legend: {
top: 20,
// left: 'center',
right: 10,
top: 'bottom',
right: '0',
orient: orientation
},
series: [
Expand All @@ -70,7 +69,7 @@
emphasis: {
label: {
show: true,
fontSize: '40',
fontSize: '24',
fontWeight: 'bold'
}
},
Expand Down
8 changes: 1 addition & 7 deletions frontend/src/routes/(app)/analytics/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,7 @@
name="riskScenariosStatus"
title={m.riskScenariosStatus()}
values={data.riskScenariosPerStatus.values}
/>
<BarChart
classesContainer="basis-1/3 card p-4 bg-white"
name="usedMatrices"
title={m.usedRiskMatrices()}
labels={data.usedRiskMatrices.map((matrix) => matrix.name)}
values={data.usedRiskMatrices.map((matrix) => matrix.risk_assessments_count)}
orientation="horizontal"
/>
</div>
</section>
Expand Down

0 comments on commit c5c942e

Please sign in to comment.