-
-
Notifications
You must be signed in to change notification settings - Fork 772
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Install @mantine/charts * Import charts styles * Refactor <PricingOverviewPanel /> * Refactor internal price panel * Refactor variant price panel * BOM bar chart * BOM donut * Refactor supplier pricing panel * More refaactoring * Cleanup unused imports * Fix typo * playwright test updates
- Loading branch information
1 parent
9f35971
commit 713d2ac
Showing
14 changed files
with
136 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
export const CHART_COLORS: string[] = [ | ||
'#ffa8a8', | ||
'#8ce99a', | ||
'#74c0fc', | ||
'#ffe066', | ||
'#63e6be', | ||
'#ffc078', | ||
'#d8f5a2', | ||
'#66d9e8', | ||
'#e599f7', | ||
'#dee2e6' | ||
'blue', | ||
'teal', | ||
'lime', | ||
'yellow', | ||
'grape', | ||
'red', | ||
'orange', | ||
'green', | ||
'indigo', | ||
'pink' | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
import { formatCurrency } from '../../defaults/formatters'; | ||
|
||
export function tooltipFormatter(label: any, currency: string) { | ||
/* | ||
* Render a chart label for a currency graph | ||
*/ | ||
export function tooltipFormatter(value: any, currency?: string) { | ||
return ( | ||
formatCurrency(label, { | ||
formatCurrency(value, { | ||
currency: currency | ||
})?.toString() ?? '' | ||
})?.toString() ?? value.toString() | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.