Skip to content

feat: currency rate chart + swap button#20

Closed
mborchuk wants to merge 1 commit into
mainfrom
feat/currency-chart
Closed

feat: currency rate chart + swap button#20
mborchuk wants to merge 1 commit into
mainfrom
feat/currency-chart

Conversation

@mborchuk
Copy link
Copy Markdown
Owner

Adds a sparkline chart below the currency converter on the dashboard showing exchange rate history. Period selector (1D/1W/1M), swap button to reverse currencies. Uses Chart.js CDN.

- Chart.js sparkline below currency converter showing rate history
- Period selector: 1D, 1W, 1M (default month)
- Chart updates when currencies change
- Swap button (⇅) to quickly reverse from/to currencies
- API endpoint /api/rates-history returns historical rates
- Uses existing CurrencyService for rate data
Comment thread app.py
val = None
if val:
points.append({'date': d.strftime('%d/%m'), 'rate': round(val, 4)})
except Exception:
@mborchuk mborchuk closed this Apr 29, 2026
@mborchuk mborchuk deleted the feat/currency-chart branch April 29, 2026 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants