Skip to content

Commit

Permalink
Adjust colour of ticks
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJem committed Oct 10, 2023
1 parent 0112430 commit 9ac32db
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/views/Lending/Cooler/dashboard/IncomeGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ export const IncomeGraph = ({ startDate }: { startDate?: Date }) => {
const bulletpointStyles = getBulletpointStylesMap(DEFAULT_BULLETPOINT_COLOURS, dataKeys);
const colorsMap = getDataKeyColorsMap(DEFAULT_COLORS, dataKeys);
const dataKeyLabels = getCategoriesMap(itemNames, dataKeys);
const tickStyle = getTickStyle(theme);
tickStyle.stroke = "#8A8B90";
tickStyle.fill = "#8A8B90";

return (
<Grid container>
Expand Down Expand Up @@ -68,7 +71,7 @@ export const IncomeGraph = ({ startDate }: { startDate?: Date }) => {
dataKeyLabels={dataKeyLabels}
infoTooltipMessage={""}
isLoading={!coolerSnapshots}
tickStyle={getTickStyle(theme)}
tickStyle={tickStyle}
itemDecimals={0}
margin={{ left: 30 }}
/>
Expand Down
5 changes: 4 additions & 1 deletion src/views/Lending/Cooler/dashboard/MaturityGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ export const MaturityGraph = () => {
const bulletpointStyles = getBulletpointStylesMap(DEFAULT_BULLETPOINT_COLOURS, dataKeys);
const colorsMap = getDataKeyColorsMap(DEFAULT_COLORS, dataKeys);
const dataKeyLabels = getCategoriesMap(itemNames, dataKeys);
const tickStyle = getTickStyle(theme);
tickStyle.stroke = "#8A8B90";
tickStyle.fill = "#8A8B90";

return (
<Grid container>
Expand Down Expand Up @@ -131,7 +134,7 @@ export const MaturityGraph = () => {
dataKeyLabels={dataKeyLabels}
infoTooltipMessage={""}
isLoading={!coolerSnapshots}
tickStyle={getTickStyle(theme)}
tickStyle={tickStyle}
itemDecimals={0}
margin={{ left: 30 }}
displayTooltipTotal={true}
Expand Down
5 changes: 4 additions & 1 deletion src/views/Lending/Cooler/dashboard/UtilisationGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ export const UtilisationGraph = ({ startDate }: { startDate?: Date }) => {
const bulletpointStyles = getBulletpointStylesMap(DEFAULT_BULLETPOINT_COLOURS, dataKeys);
const colorsMap = getDataKeyColorsMap(DEFAULT_COLORS, dataKeys);
const dataKeyLabels = getCategoriesMap(itemNames, dataKeys);
const tickStyle = getTickStyle(theme);
tickStyle.stroke = "#8A8B90";
tickStyle.fill = "#8A8B90";

return (
<Grid container>
Expand Down Expand Up @@ -72,7 +75,7 @@ export const UtilisationGraph = ({ startDate }: { startDate?: Date }) => {
dataKeyLabels={dataKeyLabels}
infoTooltipMessage={""}
isLoading={!coolerSnapshots}
tickStyle={getTickStyle(theme)}
tickStyle={tickStyle}
itemDecimals={0}
margin={{ left: 30 }}
/>
Expand Down

0 comments on commit 9ac32db

Please sign in to comment.