Skip to content

Commit

Permalink
fix(wallet-mobile): portfolio chart includes padding offset
Browse files Browse the repository at this point in the history
  • Loading branch information
banklesss committed Dec 13, 2024
1 parent 4f33434 commit d7b06eb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const TokenChartComponent = ({dataSources = [], onValueSelected}: Props) => {

const screenWidth = Dimensions.get('window').width
const x0 = 0 // x0 position
const chartWidth = screenWidth - x0
const chartWidth = screenWidth - x0 - 16 // 16 = padding
const xN = x0 + chartWidth // xN position
const xDistance = chartWidth / dataSize // The width of each coordinate point

Expand Down

0 comments on commit d7b06eb

Please sign in to comment.