Skip to content

Commit

Permalink
Merge pull request #521 from provenance-io/nullpointer0x00/historical…
Browse files Browse the repository at this point in the history
…-pricing-number-display

Historical data decimal truncation
  • Loading branch information
nullpointer0x00 authored Jun 13, 2024
2 parents 5e9db32 + 825cf84 commit d2f8d25
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ const PriceChart = ({ startDate, endDate, data }: PriceChartProps) => {
(data, startDate, endDate) => {
const seriesData = data.map((item: HistoricalPricing) => [
format(parseISO(item.time_close), 'yyyy-MM-dd'),
item.quote.USD.close,
item.quote.USD.high,
item.quote.USD.low,
item.quote.USD.volume,
parseFloat(item.quote.USD.close.toFixed(3)),
parseFloat(item.quote.USD.high.toFixed(3)),
parseFloat(item.quote.USD.low.toFixed(3)),
parseFloat(item.quote.USD.volume.toFixed(3)),
]);
// Build dynamic chart items
chartData.grid = { bottom: isLg ? 90 : 75 };
Expand Down

0 comments on commit d2f8d25

Please sign in to comment.