Commit 1ab32c8
* Changed user statistic presentation to format larger numbers in abbreviated formats to avoid overflowing the allocated screen space.
* Revert server side approach, and perform any calculations and formatting in the browser instead.
This reverts commit 1331d72.
* Implemented formatting on the client, incorporating user feedback to priovide more precision. Also took the opportunity to leverage built in toLocaleString for tooltip display value.
* Based on feedback, have adjusted to display anything >= 10,000 using suffixes and truncated to 1 decimal place max. Anything below 10,000 is returned verbatim as a localised string.
Co-authored-by: James Beard <james@smallsaucepan.com>
1 parent a2fc240 commit 1ab32c8
1 file changed
+55
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1876 | 1876 | | |
1877 | 1877 | | |
1878 | 1878 | | |
1879 | | - | |
1880 | | - | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
| 1882 | + | |
1881 | 1883 | | |
1882 | | - | |
1883 | | - | |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
| 1887 | + | |
1884 | 1888 | | |
1885 | | - | |
1886 | | - | |
| 1889 | + | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
1887 | 1893 | | |
1888 | 1894 | | |
1889 | 1895 | | |
1890 | | - | |
1891 | | - | |
1892 | | - | |
1893 | | - | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
| 1902 | + | |
| 1903 | + | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
| 1917 | + | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
1894 | 1937 | | |
1895 | | - | |
| 1938 | + | |
| 1939 | + | |
1896 | 1940 | | |
1897 | 1941 | | |
1898 | 1942 | | |
| |||
0 commit comments