Skip to content

Commit

Permalink
chore: small update on chart
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Burtey committed Apr 26, 2024
1 parent 7fccaf8 commit 6a6feca
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 14 deletions.
15 changes: 13 additions & 2 deletions app/components/price-history/price-history.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,21 @@ export const PriceHistory = () => {
{
/* eslint @typescript-eslint/ban-ts-comment: "off" */
// @ts-ignore-next-line no-implicit-any error
<CartesianChart data={prices2} yKeys={["y"]} chartPressState={state}>
<CartesianChart
data={prices2}
yKeys={["y"]}
chartPressState={state}
padding={{ left: 20, right: 20 }}
domainPadding={{ bottom: 10, top: 10 }}
>
{({ points }) => (
<>
<Line points={points.y} color={colors.primary} strokeWidth={3} />
<Line
points={points.y}
color={colors.primary}
strokeWidth={2}
curveType="natural"
/>
{isActive && <ToolTip x={state.x.position} y={state.y.y.position} />}
</>
)}
Expand Down
4 changes: 2 additions & 2 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,7 @@ PODS:
- React-Core
- react-native-secure-key-store (2.0.10):
- React-Core
- react-native-skia (1.2.2):
- react-native-skia (1.2.3):
- glog
- RCT-Folly (= 2022.05.16.00)
- React
Expand Down Expand Up @@ -1680,7 +1680,7 @@ SPEC CHECKSUMS:
react-native-nfc-manager: ead2cd1d1eaab139cc8b2dc5fbfe575eaa45efc4
react-native-safe-area-context: b97eb6f9e3b7f437806c2ce5983f479f8eb5de4b
react-native-secure-key-store: 910e6df6bc33cb790aba6ee24bc7818df1fe5898
react-native-skia: 18eb8f299e30a90594eb97454815bc71de86170d
react-native-skia: 3ac80cc6de9c33e0a02b3a7b66c29dc6b6286211
react-native-slider: 7a39874fc1fcdfee48e448fa72cce0a8f2c7c5d6
react-native-view-shot: 6b7ed61d77d88580fed10954d45fad0eb2d47688
react-native-webview: d6607cbbe7bad689cc08d6d5e35cbf9938093223
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"@rneui/base": "^4.0.0-rc.8",
"@rneui/themed": "^4.0.0-rc.8",
"@ronradtke/react-native-markdown-display": "^8.0.0",
"@shopify/react-native-skia": "^1.2.2",
"@shopify/react-native-skia": "^1.2.3",
"apollo3-cache-persist": "^0.15.0",
"axios": "^1.6.8",
"bech32": "^2.0.0",
Expand Down Expand Up @@ -145,7 +145,7 @@
"use-count-up": "^3.0.1",
"uuid": "^9.0.0",
"validator": "^13.9.0",
"victory-native": "^40.1.0",
"victory-native": "^40.1.1",
"webln": "^0.3.2"
},
"devDependencies": {
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4596,10 +4596,10 @@
dependencies:
any-observable "^0.3.0"

"@shopify/react-native-skia@^1.2.2":
version "1.2.2"
resolved "https://registry.npmjs.org/@shopify/react-native-skia/-/react-native-skia-1.2.2.tgz#15bceda8f32d5b990a866b4f29b9d7b7cdce61ae"
integrity sha512-YlDNJXTCstlOmyJxeQjaTaef8ACLuEPMDrSgEichQM3ELlWuU1HTSVbpXW2x4LbbEDPXwu/aF/16MUN8pzzcmA==
"@shopify/react-native-skia@^1.2.3":
version "1.2.3"
resolved "https://registry.npmjs.org/@shopify/react-native-skia/-/react-native-skia-1.2.3.tgz#d87efd01c362b69f62375ce950c30e453586d6f9"
integrity sha512-gyUD/HGsMyZ+YAoWxVh24HYN5juwC/dZWINL/0sKP7Ttee/0igCRxWPneH1BbVH28dhyf+tvksQNUwpMM3VWbg==
dependencies:
canvaskit-wasm "0.39.1"
react-reconciler "0.27.0"
Expand Down Expand Up @@ -23848,10 +23848,10 @@ vfile@^4.0.0:
unist-util-stringify-position "^2.0.0"
vfile-message "^2.0.0"

victory-native@^40.1.0:
version "40.1.0"
resolved "https://registry.npmjs.org/victory-native/-/victory-native-40.1.0.tgz#16cad23cbfffdd1b0af10c4fae9f4a01bda20bb4"
integrity sha512-osdF15xP85nNsghFkwKRWPG4FTxYvBhjtEkf2wmLIFv1OS6v7YFBFT5rNA5dBRa3RTMkyfDfsJOImDnaY/l9aw==
victory-native@^40.1.1:
version "40.1.1"
resolved "https://registry.npmjs.org/victory-native/-/victory-native-40.1.1.tgz#08a52c4a9726d473677916c629048239d612dea0"
integrity sha512-jag3gzffRpQNFwdpu8/9sXOxB+Bz25++fcKQwp1SN3LBTee7IKUs7gA0rzlpv3STA4CpO/2bSQ4ts8TvtXZpyA==
dependencies:
d3-scale "^4.0.2"
d3-shape "^3.2.0"
Expand Down

0 comments on commit 6a6feca

Please sign in to comment.