Skip to content

Commit

Permalink
fix: show component rating value on y-axis ticks
Browse files Browse the repository at this point in the history
  • Loading branch information
samshara committed Oct 17, 2024
1 parent 3705667 commit 81dc3bd
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .changeset/spicy-dragons-teach.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@ifrc-go/ui": patch
---

- PieChart Component

- Added a `colorSelector` prop to select color for each pie

- ProgressBar Component
- Introduced a `color` prop to customize the progress bar's color
5 changes: 5 additions & 0 deletions .changeset/tricky-hornets-trade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"go-web-app": patch
---

Added color mapping based on PER Area and Rating across all PER charts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function PreviousAssessmentCharts(props: Props) {
const ratingTitleMap = listToMap(
ratingOptions,
(option) => option.value,
(option) => option.title,
(option) => `${option.title} ${option.value}`,
);

const chartData = useNumericChartData(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function RatingByAreaChart(props: Props) {
const ratingTitleMap = listToMap(
ratingOptions,
(option) => option.value,
(option) => option.title,
(option) => `${option.title} ${option.value}`,
);

const formAreaMap = listToMap(
Expand Down

0 comments on commit 81dc3bd

Please sign in to comment.