Alternera. Resources. Finance. UI. RateHistoryView
(alternera_resources_finance v0.9.0)
Copy Markdown
View Source
The exchange rates' History view: a card per currency pair with a line chart of its rate over the chosen period (30 days, 90 days, a year or everything kept), and beside it in words the newest rate, its day, the change over the period and the period's low and high.
The search picks the pairs: every pair among the records the host hands the view (the page of the search, as for every view) gets a card. The chart itself reads each pair's whole history in the period with Ash as the viewer, oldest first and at most 20000 rates in all; the view says so beside the period when the period holds more.
Plain SVG, no script: a polyline of at most 160 points per pair (a longer history is thinned evenly, the newest rate always kept). The numbers in words carry what the line shows, for a reader who cannot see it.