Nick9500 / ministocks

Android Stocks Widget
http://niteshpatel.github.io/ministocks
MIT License
1 stars 2 forks source link

As a User, I want to be able to change the time scale interval of the Graph Data #37

Closed Nick9500 closed 6 years ago

Nick9500 commented 6 years ago

Currently, the time scale interval for the Graph data on the Graphs Branch only supports 52 week mode by default. As a user, I want to see various buttons below the graph that allow you to switch the graph between 7 day mode (1 value per day for the last week), 12 month mode (1 value per month), and the existing 52 week mode (1 value per week for 1 year).

[SP: 3] [Priority: 2] [Risk: Medium]

Demo Scenario 1: User taps on an existing stock in the list Scenario 2: User taps on one of three buttons to switch between various time intervals on graph view.

Tasks Add 3 dummy buttons labelled (7d, 52wk, 12mth) See how 52 week mode is set by default. Reverse engineer existing 52 week mode to apply for the different data set time intervals desired. Test actual functionality using debugger or logcat. Attach buttons to functionality. Write tests for getting reading dataset via AlphaVantage, httpresponse to ImageChart or anything else necessary.

Nick9500 commented 6 years ago

ssdsds

Nick9500 commented 6 years ago

Nice, it's almost there! We still have a strange issue where the navigation bar and the icons below bounce up and down after closing the chart popup. Will investigate and fix shortly. After that, we need to add a test or two to make sure that the URLs are being properly gotten for each of the different buttons. This will most likely be fixed in Sprint 5, when this graphs feature is due.