= 5 ? "flex" : "hidden"}>
{
responsive: false,
plugins: {
title: {
- display: true,
+ display: false,
text: `Change of Top Coins ${getLabel()} Percentage`,
},
datalabels: {
@@ -41,13 +42,13 @@ const App = ({ data }: { data: TopCoinsPercentageChangeData }) => {
scales: {
x: {
title: {
- display: true,
+ display: false,
text: "Date",
},
},
y: {
title: {
- display: true,
+ display: false,
text: "Percentage",
},
offset: true,
@@ -92,9 +93,9 @@ const App = ({ data }: { data: TopCoinsPercentageChangeData }) => {
data: coinPercentageData(data.timestamps, coin.percentageData),
borderColor: coin.lineColor,
backgroundColor: coin.lineColor,
- borderWidth: 5,
+ borderWidth: 4,
tension: 0.1,
- pointRadius: 1,
+ pointRadius: 0.2,
pointStyle: "rotRect",
})),
};
@@ -121,24 +122,35 @@ const App = ({ data }: { data: TopCoinsPercentageChangeData }) => {
}
return (
- <>
-
- onTypeSelectChange(getWholeKey(val))}
- >
- Value
- Price
-
-
-
-
-
- >
+
+
+
+
+ Change of Top Coins {getLabel()} Percentage
+
+
+
+
+
+ onTypeSelectChange(getWholeKey(val))
+ }
+ >
+ Value
+ Price
+
+
+
+
+
+
+
+
);
};
diff --git a/src/components/top-coins-rank.tsx b/src/components/top-coins-rank.tsx
index 11ce1ba..f1e8394 100644
--- a/src/components/top-coins-rank.tsx
+++ b/src/components/top-coins-rank.tsx
@@ -7,6 +7,7 @@ import { ChartJSOrUndefined } from "react-chartjs-2/dist/types";
import { BubbleDataPoint, Point } from "chart.js";
import _ from "lodash";
import { legendOnClick } from "@/utils/legend";
+import { Card, CardContent, CardHeader, CardTitle } from "./ui/card";
const App = ({ data }: { data: TopCoinsRankData }) => {
const size = useWindowSize();
@@ -24,7 +25,7 @@ const App = ({ data }: { data: TopCoinsRankData }) => {
responsive: false,
plugins: {
title: {
- display: true,
+ display: false,
text: "Trend of Top Coins Rank",
},
datalabels: {
@@ -37,19 +38,25 @@ const App = ({ data }: { data: TopCoinsRankData }) => {
scales: {
x: {
title: {
- display: true,
+ display: false,
text: "Date",
},
+ ticks: {
+ autoSkip: true,
+ },
},
y: {
title: {
- display: true,
+ display: false,
text: "Rank",
},
offset: true,
reverse: true,
ticks: {
precision: 0,
+ callback: function (value: number) {
+ return "#" + value;
+ },
},
grid: {
display: false,
@@ -77,24 +84,33 @@ const App = ({ data }: { data: TopCoinsRankData }) => {
data: coinRankData(data.timestamps, coin.rankData),
borderColor: coin.lineColor,
backgroundColor: coin.lineColor,
- borderWidth: 5,
+ borderWidth: 4,
tension: 0.1,
- pointRadius: 1,
+ pointRadius: 0.2,
pointStyle: "rotRect",
})),
};
}
return (
- <>
-
-
-
- >
+
+
+
+
+ Trend of Top Coins Rank
+
+
+
+
+
+
+
+
+
);
};
diff --git a/src/components/total-value.tsx b/src/components/total-value-and-change.tsx
similarity index 88%
rename from src/components/total-value.tsx
rename to src/components/total-value-and-change.tsx
index 21f38e1..c3fca4a 100644
--- a/src/components/total-value.tsx
+++ b/src/components/total-value-and-change.tsx
@@ -239,6 +239,8 @@ const App = ({
plugins: {
title: {
display: false,
+ // text is set for resizing
+ text: "Trend of Asset",
},
datalabels: {
display: false,
@@ -251,7 +253,6 @@ const App = ({
x: {
title: {
display: false,
- text: "Date",
},
ticks: {
maxTicksLimit: 2,
@@ -317,17 +318,21 @@ const App = ({
Total Value In {formatCurrencyName()}
diff --git a/src/components/wallet-analyzer.tsx b/src/components/wallet-analyzer.tsx
index ed731af..a227ebc 100644
--- a/src/components/wallet-analyzer.tsx
+++ b/src/components/wallet-analyzer.tsx
@@ -29,14 +29,13 @@ const App = ({ currency }: { currency: CurrencyRateDetail }) => {
}
return (
- <>
+
-
- >
+
);
};
diff --git a/src/components/wallet-assets-change.tsx b/src/components/wallet-assets-change.tsx
index 8e1ce84..cddecaa 100644
--- a/src/components/wallet-assets-change.tsx
+++ b/src/components/wallet-assets-change.tsx
@@ -13,6 +13,7 @@ import {
TableBody,
Table,
} from "@/components/ui/table";
+import { Card, CardContent, CardHeader, CardTitle } from './ui/card'
const App = ({
data,
@@ -51,63 +52,73 @@ const App = ({
}
return (
- <>
- Value Changes
-
-
-
-
-
- Wallet Type
- Wallet Alias
- Percentage
- Value
-
-
-
- {data.map((d) => (
-
-
- {!d.walletType || d.walletType === "null"
- ? "Unknown"
- : tweakWalletType(d.walletType)}
-
-
- {d.walletAlias ??
- insertEllipsis(
- !d.wallet || d.wallet === "null" ? "Unknown" : d.wallet,
- 32
- )}
-
-
- {getArrow(d.changePercentage)}
- {prettyNumberToLocaleString(
- getPositiveValue(d.changePercentage)
- )}
- %
-
-
- {getArrow(d.changeValue)}
- {currency.symbol}
- {prettyNumberToLocaleString(
- currencyWrapper(currency)(getPositiveValue(d.changeValue))
- )}
-
-
- ))}
-
-
-
-
- >
+
+
+
+ Value Changes
+
+
+
+
+
+
+
+ Wallet Type
+ Wallet Alias
+ Percentage
+ Value
+
+
+
+ {data.map((d) => (
+
+
+ {!d.walletType || d.walletType === "null"
+ ? "Unknown"
+ : tweakWalletType(d.walletType)}
+
+
+ {d.walletAlias ??
+ insertEllipsis(
+ !d.wallet || d.wallet === "null"
+ ? "Unknown"
+ : d.wallet,
+ 32
+ )}
+
+
+ {getArrow(d.changePercentage)}
+ {prettyNumberToLocaleString(
+ getPositiveValue(d.changePercentage)
+ )}
+ %
+
+
+ {getArrow(d.changeValue)}
+ {currency.symbol}
+ {prettyNumberToLocaleString(
+ currencyWrapper(currency)(
+ getPositiveValue(d.changeValue)
+ )
+ )}
+
+
+ ))}
+
+
+
+
+
+
+
);
};
diff --git a/src/components/wallet-assets-percentage.tsx b/src/components/wallet-assets-percentage.tsx
index ad7121e..3a212dc 100644
--- a/src/components/wallet-assets-percentage.tsx
+++ b/src/components/wallet-assets-percentage.tsx
@@ -7,7 +7,8 @@ import {
import { currencyWrapper, prettyNumberToLocaleString } from "@/utils/currency";
import _ from "lodash";
import { useEffect, useState } from "react";
-import { insertEllipsis } from '@/utils/string'
+import { insertEllipsis } from "@/utils/string";
+import { Card, CardContent, CardHeader, CardTitle } from "./ui/card";
const App = ({
data,
@@ -31,7 +32,7 @@ const App = ({
barPercentage: 0.9,
plugins: {
title: {
- display: true,
+ display: false,
text: `Percentage And Total Value of Each Wallet`,
},
legend: {
@@ -69,14 +70,18 @@ const App = ({
},
grid: {
display: false,
- }
- }
+ },
+ },
},
};
function lineData() {
return {
- labels: data.map((d) => d.walletAlias ? `${d.walletType}-${d.walletAlias}` : insertEllipsis(d.wallet, 16)),
+ labels: data.map((d) =>
+ d.walletAlias
+ ? `${d.walletType}-${d.walletAlias}`
+ : insertEllipsis(d.wallet, 16)
+ ),
datasets: [
{
alias: "y",
@@ -92,13 +97,22 @@ const App = ({
return (
-
-
-
+
+
+
+ Percentage And Total Value of Each Wallet
+
+
+
+
+
+
+
+
);
};