bitshares / bitshares/bitshares-ui

[2] Trading View not scaling correcly

Open
#2,988 1 comment 0 reactions 0 assignees View on GitHub
[1c] Task [3] Enhancement [5b] Small
Dominant language
JavaScript
Stars
520
Forks
575
Avg merge
12h 7m
Merged PRs (30d)
5

Description

When you're using the bottom controllers of the Trading View chart, to select a scaling for 3 months, 1 month, 5 days or 1 day, the graph will not display enough data.

For example,
- clicking 1 day will scale to 1 minute per bar, but only display the last 5 hours of data, not 24 hours.
- clicking 5 days will scale to 5 minute per bar, but only display the last 24 hours, not 120 hours.
- clicking 30 days will scale to 30 minute per bar, but only display the last 13 days, not 30 days.
- clicking 3 months will scale to 1 hour per bar, but only display the last 30 days, not 90 days.

I assume we have the wrong scaling of the chart somewhere.

The graph also does not re-render when the sidebars are toggled.it will just show less time.

Contributor guide

Open the contributing guide

Research direction

Start by locating the Trading View chart and its bottom scaling controllers, then reproduce the 1 day, 5 day, 30 day, and 3 month ranges described in the issue. Check the chart again after toggling the sidebars; done means each range displays its intended time span and the chart re-renders to use the available width.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.