The changes in the diff modify the 'format' function in the 'columns' array in the 'StickyHeadTable' component in /frontend/src/Components/table.js. The 'format' function is updated to use the 'toLocaleString' method to add thousands separators for the 'population' and 'size' columns, and the 'toFixed' method to round the 'density' column to 2 decimal places.
Add thousands separators for large numbersAdding thousands separators for large numbers will make the data more user-friendly and easier to read.
2
✅
Round decimalsRounding decimals will improve the accuracy and consistency of the data.
Something look wrong?: If this Pull Request doesn't contain the expected changes, add more information to #15. Then, add the bitbuilder:create label to try again. For more information, check the documentation.
Summary:
Issue: https://github.com/marissaposner/graph-hackathon-2023/issues/15
The changes in the diff modify the 'format' function in the 'columns' array in the 'StickyHeadTable' component in /frontend/src/Components/table.js. The 'format' function is updated to use the 'toLocaleString' method to add thousands separators for the 'population' and 'size' columns, and the 'toFixed' method to round the 'density' column to 2 decimal places.
Implementation:
Add thousands separators for large numbers
Adding thousands separators for large numbers will make the data more user-friendly and easier to read.Round decimals
Rounding decimals will improve the accuracy and consistency of the data.Something look wrong?: If this Pull Request doesn't contain the expected changes, add more information to #15. Then, add the
bitbuilder:create
label to try again. For more information, check the documentation.Generated with :heart: by www.bitbuilder.ai