Problem Description
The Stock Details screen fails to render the line graph for the stock's price history, showing a yellow label instead.
Expected Solution
The MPAndroidChart should display a filled line graph of the daily/weekly price trend.
Steps to Reproduce
- Launch the app.
- Click any stock from the Top Gainers list.
- Observe the empty space below the header.
Proposed Fix
Investigate StockViewModel.kt to ensure the API response is correctly mapping to MPAndroidChart Entry(x, y) objects. Ensure the LineDataSet is properly attached and chart.invalidate() is called on the main thread.
Concerned Files
detailsFragment.kt
StockViewModel.kt
fragment_details.xml
Acceptance Criteria
Problem Description
The Stock Details screen fails to render the line graph for the stock's price history, showing a yellow label instead.
Expected Solution
The MPAndroidChart should display a filled line graph of the daily/weekly price trend.
Steps to Reproduce
Proposed Fix
Investigate
StockViewModel.ktto ensure the API response is correctly mapping to MPAndroidChartEntry(x, y)objects. Ensure theLineDataSetis properly attached andchart.invalidate()is called on the main thread.Concerned Files
detailsFragment.ktStockViewModel.ktfragment_details.xmlAcceptance Criteria