Anki/ts/graphs
Vova Selin 2df3698e8c
Minor changes to graphs (#1566)
* Add thousands comma separator for card counts graph

* Fix Answer Buttons graph's tooltip

Changes to the "times pressed" heading

* Shows the percent of that button out of all the presses

* Comma separates total on thousands

* Update CONTRIBUTERS

* Wider spacing for graph tables

* Switch to locale-based stats numbers

* Update CONTRIBUTORS 

Wrong email?

* Fix counts graph on narrow devices

Graph and table now align in a column when the device's screen is narrow. Columns widths are  bounded to not get too wide

* Rename toLocaleXXX functions

* toLocaleNumber -> localizedNumber
 *  toLocaleString -> localizedDate

Also cleans up sketchy "card counts" table formatting

* Localize more numbers

Uses locale-based rounding for more numbers now

* Localize graph axis ticks

* Fix future-due graph tooltip

* avoid div by zero (dae)

Ignoring NaN in localizedNumber() could potentially mask a mistake
in the future - better to explicitly handle the invalid case at the
source instead.
2021-12-29 15:04:15 +10:00
..
added.ts Set "no-non-null-assertion: off" by default (#1475) 2021-11-04 11:42:51 +10:00
AddedGraph.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
AxisTicks.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
BUILD.bazel pass ts deps into most Svelte packages; remove redundant deps 2021-10-18 12:44:31 +10:00
buttons.ts Minor changes to graphs (#1566) 2021-12-29 15:04:15 +10:00
ButtonsGraph.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
calendar.ts Minor changes to graphs (#1566) 2021-12-29 15:04:15 +10:00
CalendarGraph.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
card-counts.ts Minor changes to graphs (#1566) 2021-12-29 15:04:15 +10:00
CardCounts.svelte Minor changes to graphs (#1566) 2021-12-29 15:04:15 +10:00
CumulativeOverlay.svelte yarn upgrade --latest 2021-10-01 12:52:53 +10:00
ease.ts Minor changes to graphs (#1566) 2021-12-29 15:04:15 +10:00
EaseGraph.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
future-due.ts Minor changes to graphs (#1566) 2021-12-29 15:04:15 +10:00
FutureDue.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
graph-helpers.ts Set "no-non-null-assertion: off" by default (#1475) 2021-11-04 11:42:51 +10:00
graph-styles.ts merge in Henrik's TS/Svelte refactor with some changes 2021-03-21 23:01:18 +10:00
Graph.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
GraphRangeRadios.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
graphs-base.scss Several CSS fixes - Editor Cleanup (#1470) 2021-10-31 08:29:22 +10:00
graphs.html Use trailingComma: all setting in .prettierrc (#1435) 2021-10-19 09:06:00 +10:00
GraphsPage.svelte Live theme changes (#1497) 2021-11-25 07:17:41 +10:00
histogram-graph.ts Minor changes to graphs (#1566) 2021-12-29 15:04:15 +10:00
HistogramGraph.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
HourGraph.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
hours.ts Minor changes to graphs (#1566) 2021-12-29 15:04:15 +10:00
HoverColumns.svelte Minor changes to graphs (#1566) 2021-12-29 15:04:15 +10:00
index.ts Live theme changes (#1497) 2021-11-25 07:17:41 +10:00
InputBox.svelte yarn upgrade --latest 2021-10-01 12:52:53 +10:00
intervals.ts Minor changes to graphs (#1566) 2021-12-29 15:04:15 +10:00
IntervalsGraph.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
NoDataOverlay.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
RangeBox.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
reviews.ts Minor changes to graphs (#1566) 2021-12-29 15:04:15 +10:00
ReviewsGraph.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
TableData.svelte Minor changes to graphs (#1566) 2021-12-29 15:04:15 +10:00
today.ts Minor changes to graphs (#1566) 2021-12-29 15:04:15 +10:00
TodayStats.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
Tooltip.svelte update ts deps 2021-05-26 09:37:40 +10:00
tooltip.ts update ts deps 2021-05-26 09:37:40 +10:00
tsconfig.json add a missing references line in ts/graphs 2021-11-04 14:56:50 +10:00
WithGraphData.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00