Skip to content

Commit 81dc3bd

Browse files
committed
fix: show component rating value on y-axis ticks
1 parent 3705667 commit 81dc3bd

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

.changeset/spicy-dragons-teach.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"@ifrc-go/ui": patch
3+
---
4+
5+
- PieChart Component
6+
7+
- Added a `colorSelector` prop to select color for each pie
8+
9+
- ProgressBar Component
10+
- Introduced a `color` prop to customize the progress bar's color

.changeset/tricky-hornets-trade.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"go-web-app": patch
3+
---
4+
5+
Added color mapping based on PER Area and Rating across all PER charts

app/src/views/CountryPreparedness/PreviousAssessmentChart/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function PreviousAssessmentCharts(props: Props) {
4949
const ratingTitleMap = listToMap(
5050
ratingOptions,
5151
(option) => option.value,
52-
(option) => option.title,
52+
(option) => `${option.title} ${option.value}`,
5353
);
5454

5555
const chartData = useNumericChartData(

app/src/views/CountryPreparedness/RatingByAreaChart/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function RatingByAreaChart(props: Props) {
4444
const ratingTitleMap = listToMap(
4545
ratingOptions,
4646
(option) => option.value,
47-
(option) => option.title,
47+
(option) => `${option.title} ${option.value}`,
4848
);
4949

5050
const formAreaMap = listToMap(

0 commit comments

Comments
 (0)