Skip to content

Commit 45bea5b

Browse files
JansenNickIllia Obukhau
andauthored
Update packages/shared/charts/src/hooks/usePlotChartDataSeries.ts
Co-authored-by: Illia Obukhau <[email protected]>
1 parent 7b2be5f commit 45bea5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/shared/charts/src/hooks/usePlotChartDataSeries.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,12 @@ function extractDataPoints(
209209
if (!x.value) {
210210
xData.push(null);
211211
} else {
212-
xData.push(x.value instanceof Big ? Number(x.value.toString()) : x.value);
212+
xData.push(x.value instanceof Big ? x.value.toNumber() : x.value);
213213
}
214214
if (!y.value) {
215215
yData.push(null);
216216
} else {
217-
yData.push(y.value instanceof Big ? Number(y.value.toString()) : y.value);
217+
yData.push(y.value instanceof Big ? y.value.toNumber() : y.value);
218218
}
219219

220220
const tooltipHoverTextSource =

0 commit comments

Comments
 (0)